My Jupyterlab development environment. Allows faster way to test and iterate my ideas.
I am adding components whenever I need one.
There's a docker volume attached, your projects are persisted there.
- Start Jupyterlab environment
docker-compose up -d --build
- Link and token for your environment is in logs
docker-compose logs jupyterlab jupyterlab_1 | To access the server, open this file in a browser: jupyterlab_1 | file:///home/wonky/.local/share/jupyter/runtime/jpserver-7-open.html jupyterlab_1 | Or copy and paste one of these URLs: jupyterlab_1 | http://localhost:8888/lab?token=xxxxx jupyterlab_1 | or http://127.0.0.1:8888/lab?token=xxxxx
- Start new project (do this inside terminal in the Jupyterlab)
start-project.sh "myproject"
Installing package to same kernel your notebook uses
The start-project.sh
script creates and installs a kernel with own virtualenv.
In order to install packages directly from notebook you have to use correct Python executable.
import sys
!{sys.executable} -m pip install cryptography