Skip to content

Instantly share code, notes, and snippets.

@akimriparian
Last active June 4, 2020 19:34
Show Gist options
  • Save akimriparian/cc40effdd14c6eb148917e3bc2b31123 to your computer and use it in GitHub Desktop.
Save akimriparian/cc40effdd14c6eb148917e3bc2b31123 to your computer and use it in GitHub Desktop.
Jupyter Lab set up

** Instructions**

to get jupyter lab set up in your django api environment https://github.com/jupyterlab/jupyterlab

in your pipenv shell run:

pip install django-extensions
pip install ipython
pip install jupyter

In you django-api/conf/settings.py add to the INSTALLED_APPS list

'django_extensions'

Back in your pipenv shell

# do this once to get the django kernel setup
./django-api/manage.py shell_plus --notebook
# then exit out of the running process
pip install jupyterlab
jupyter serverextension enable --py jupyterlab --sys-prefix

# this is for google drive support
jupyter labextension install @jupyterlab/google-drive

To run jupyter lab:

export DJANGO_SETTINGS_MODULE=conf.settings
jupyter lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment