Default notebook directory in iPython Notebook - iPython 3.0.0

iayork

I upgraded to iPython 3.0.0 (Python 3.4; using the Anaconda environment; Mac OSX 10.9.5) and the behavior on opening a new iPython Notebook session seems to have changed. I have set the c.NotebookManager.notebook_dir option in ipython_notebook_config.py to a particular directory; this used to cause the browser to open in that directory, but now the browser opens in the current working directory:

Serving notebooks from local directory: /Users/ite1

I've checked that I've modified the config files that iPython is using; on opening it says Using existing profile dir: '/Users/ite1/.ipython/profile_default' and the config files in there are indeed set to the appropriate default.

I also re-generated config files in all my profiles, set the notebook_dir in each, and still didn't get what I consider correct behavior.

Setting the same option on the command line does work:

ipython notebook --notebook-dir "/Users/ite1/Documents/iPython notebooks"

opens the browser in the correct directory:

Serving notebooks from local directory: /Users/ite1/Documents/iPython notebooks

The fact that this worked in the last version and doesn't work now, and that it works from the command line but not the config files, makes me wonder if this is a bug, but it's also possible that the method for setting a default directory to open in has changed.

iayork

The config has changed for this; it's now FileContentsManager.root_dir.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

changing directory in ipython notebook

From Dev

IPython/Jupyter notebook 3 - hide headers by default

From Dev

iPython Notebook svg Figures by Default

From Dev

Run IPython notebook with Spark in another directory

From Dev

How to limit ipython notebook directory access

From Dev

How to change IPython Notebook home directory?

From Dev

Default template for iPython notebook (using Jupyter)

From Dev

How to change default colour scheme for ipython notebook?

From Dev

Ipython Notebook: Default Initialization Python Code

From Dev

ipython notebook: how to toggle header invisible by default

From Dev

Changing the default port for iPython notebook server / Jupyter

From Dev

Open 'ipython notebook' as: IPython notebook vs Jupyter

From Dev

Ipython notebook - Create a new notebook (Python conda or default Python)

From Dev

Ipython notebook link to external notebook

From Dev

Including a notebook in another notebook in IPython?

From Dev

IPython Notebook - saving notebook fails

From Dev

Ipython notebook link to external notebook

From Dev

Ipython notebook 3 disables seaborn settings

From Dev

Anaconda: Python 3 and 2 in IPython/Jupyter Notebook

From Dev

ipython3 - no module named notebook

From Dev

Ipython notebook caching issue

From Dev

iPython notebook plantuml extension

From Dev

ipython notebook toolbar customize

From Dev

Centering output on IPython notebook

From Dev

Print not showing in ipython notebook

From Dev

Link Spark with iPython Notebook

From Dev

How to develop with ipython notebook

From Dev

ggvis in jupyter/ipython notebook

From Dev

IPython Notebook and Pandas autocomplete

Related Related

HotTag

Archive