IPython Notebook setup saves directory when used via django_extensions

I am using IPython Notebook through django_extensions:

     python manage.py shell_plus --notebook

This will save the Notebook files in the current folder (Django project folder). How to change save location for .ipynbfiles?

+4
source share
2 answers

You can change the directories in which the files are stored and read from these parameters in ~ / .ipython / profile_projectname / ipython_notebook_config.py, where projectname is your Django project.

c.NotebookManager.notebook_dir = u '/ path / to / files'

c.FileNotebookManager.notebook_dir = u '/ path / to / files'

, , django. syspath, , , , . , , .

+1

, + Django.

:

PYTHONPATH=/path/to/project/root DJANGO_SETTINGS_MODULE=settings python manage.py --notebook --no-browser

PYTHONPATH , shell_plus , .

P.S.

, --no-browser, w3m ^^

0

Source: https://habr.com/ru/post/1533348/


All Articles