README
pyarif
Jupyter notebook and lab
Personal
- Notebook: https://pyarif.herokuapp.com
- Lab: https://pyarif.herokuapp.com/lab
Public
- Notebook: https://devarif.herokuapp.com
- Lab: https://devarif.herokuapp.com/lab
- Password for both:
1234567890
commands
- file -> save workspace as
pip install pipenv- install jupyter:
pipenv install jupyter --python 3.8 - install jupyter:
pipenv install jupyterlab --python 3.8 - to activate virtual environment:
pipenv shell - run notebook:
jupyter notebook - create hash pass:
ipython -c "from notebook.auth import passwd; passwd()" - or,
python -c "from notebook.auth import passwd; print(passwd())" - run notebook with pass:
jupyter notebook --config=./config/jupyter.py jupyter notebook --generate-config!tar chvfz notebook.tar.gz *!tar -xv -f notebook.tar.gzchmod +x scripts/entrypoint.sh
Build & Run Docker Locally
- build docker:
docker build -t pyarif -f Dockerfile . - docker run -it pyarif /bin/bash
- docker run --env PORT=8888 -it -p 8888:8888 pyarif
chmod
- chmod +x ./scripts/build.sh
- chmod +x ./scripts/d_run.sh
- chmod +x ./scripts/d_buildAndRun.sh
- chmod +x ./scripts/deploy.sh
heroku
- Create heroku app:
heroku create pyarif - Login to Heroku Container Registry:
heroku container:login - Push To Heroku:
heroku container:push web -a pyarif - Release To Heroku:
heroku container:release web -a pyarif