Django jupyter notebook in browser

How do you start a jupyter notebook with all the django settings working?

Step 1: Install shell_plus from django-extensions

Step 2: start shell_plus with –lab

Bash
$ python manage.py shell_plus --lab

# Not python manage.py shell_plus --notebook

Note: old documentation may suggest “–notebook”

  • According to this github issue (github.com) “–lab” is used for notebook>=7.0.0 
  • Useful gist for more info (gist)

Also: