IPython notebook won't read the configuration file

CentAu

I used the following command to initialize a profile:

ipython profile create myserver

Added thses lines to ~/.ipython/profile_myserver/ipython_notebook_config.py:

c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8889

Tried starting the notebook with:

ipython notebook --profile=myserver --debug

It does not read the config file at all. This is the log output:

[W 16:26:56.607 NotebookApp] Unrecognized alias: '--profile=myserver', it will probably have no effect.
[D 16:26:56.609 NotebookApp] Config changed:
[D 16:26:56.609 NotebookApp] {'profile': u'myserver', 'NotebookApp': {'log_level': 10}}
...
[I 16:26:56.665 NotebookApp] 0 active kernels 
[I 16:26:56.665 NotebookApp] The IPython Notebook is running at: http://localhost:8888/

Since I've explicitly specified port 8889 and it still runs on 8888, it clearly ignores the config file. What am I missing?

dmvianna

IPython has now moved to version 4.0, which means that if you are using it, it will be reading its configuration from ~/.jupyter, not ~/.ipython. You have to create a new configuration file with

jupyter notebook --generate-config

and then edit the resulting ~/.jupyter/jupyter_notebook_config.py file according to your needs.

More installation instructions here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

iPython notebook won't convert to PDF when using align

From Dev

IPython Notebook configuration

From Dev

IPython Notebook configuration

From Dev

ipython notebook startup file

From Dev

ipython notebook startup file

From Dev

Read cell content in an ipython notebook

From Dev

PHP Imagick Won't Read SVG file

From Dev

Java - Won't read out File content

From Dev

PHP Imagick Won't Read SVG file

From Dev

Won't read full file c++

From Dev

IPython Notebook throws ImportError – IPython doesn't

From Dev

IPython Notebook throws ImportError – IPython doesn't

From Dev

Import html to ipython notebook file

From Dev

ipython notebook read multiple images and display in CELL

From Dev

options "--read-only" Ipython Notebook

From Dev

ipython notebook read multiple images and display in CELL

From Dev

Exported Jar file won't read file inside jar

From Dev

How to set configuration file for ipython

From Dev

C Unix program won't read from file

From Dev

Code to read from a file and then putting it into a constructor won't work

From Dev

Code to read from a file and then putting it into a constructor won't work

From Dev

BufferedReader won't read

From Dev

Save output of ggplot in ipython notebook to file

From Dev

Cannot import .py file to ipython notebook

From Dev

Can you upload a data file in a ipython notebook

From Dev

Matplotlib: Save figure as file from iPython notebook

From Dev

Displaying an HTML file with a JS inside an iPython notebook

From Dev

plot() doesn't work on IPython notebook

From Dev

Can't install pip on ipython notebook