[IPython-User] Trouble with configuration file in notebook

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[IPython-User] Trouble with configuration file in notebook

John ZuHone
Hello,

I used

ipython profile create

to create the default configuration file, and then I uncommented a few lines in .ipython/profile_default/ipython_notebook_config.py to set different configuration options, e.g.:

c.NotebookApp.open_browser = False
c.NotebookApp.log_level = 20

However, none of them seem to be actually changing:

ipython notebook —debug

2014-12-10 23:15:50.654 [NotebookApp] Config changed:
2014-12-10 23:15:50.654 [NotebookApp] {'Application': {'log_level': 10}}
2014-12-10 23:15:50.655 [NotebookApp] IPYTHONDIR set to: /Users/jzuhone/.ipython
2014-12-10 23:15:50.659 [NotebookApp] Using existing profile dir: u'/Users/jzuhone/.ipython/profile_default'
2014-12-10 23:15:50.660 [NotebookApp] Searching path [u'/Users/jzuhone', u'/Users/jzuhone/.ipython/profile_default'] for config files
2014-12-10 23:15:50.660 [NotebookApp] Attempting to load config file: ipython_config.py
2014-12-10 23:15:50.661 [NotebookApp] Loaded config file: /Users/jzuhone/.ipython/profile_default/ipython_config.py
2014-12-10 23:15:50.661 [NotebookApp] Attempting to load config file: ipython_notebook_config.py
2014-12-10 23:15:50.662 [NotebookApp] Loaded config file: /Users/jzuhone/.ipython/profile_default/ipython_notebook_config.py
2014-12-10 23:15:50.669 [NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-12-10 23:15:50.684 [NotebookApp] The port 8888 is already in use, trying another random port.
2014-12-10 23:15:50.685 [NotebookApp] Serving notebooks from local directory: /Users/jzuhone
2014-12-10 23:15:50.685 [NotebookApp] 0 active kernels
2014-12-10 23:15:50.685 [NotebookApp] The IPython Notebook is running at: http://localhost:8889/
2014-12-10 23:15:50.685 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

The “config changed” message does not show up after loading the notebook config, and the change in the config option does not even take place. Can anyone clarify what is going on here?

Best,

John ZuHone

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with configuration file in notebook

John ZuHone
Check that, it turns out that it is only the log_level setting that is not activating.

I’m also using ipython 2.3.1, for reference.

John Z

> On Dec 10, 2014, at 11:18 PM, John ZuHone <[hidden email]> wrote:
>
> Hello,
>
> I used
>
> ipython profile create
>
> to create the default configuration file, and then I uncommented a few lines in .ipython/profile_default/ipython_notebook_config.py to set different configuration options, e.g.:
>
> c.NotebookApp.open_browser = False
> c.NotebookApp.log_level = 20
>
> However, none of them seem to be actually changing:
>
> ipython notebook —debug
>
> 2014-12-10 23:15:50.654 [NotebookApp] Config changed:
> 2014-12-10 23:15:50.654 [NotebookApp] {'Application': {'log_level': 10}}
> 2014-12-10 23:15:50.655 [NotebookApp] IPYTHONDIR set to: /Users/jzuhone/.ipython
> 2014-12-10 23:15:50.659 [NotebookApp] Using existing profile dir: u'/Users/jzuhone/.ipython/profile_default'
> 2014-12-10 23:15:50.660 [NotebookApp] Searching path [u'/Users/jzuhone', u'/Users/jzuhone/.ipython/profile_default'] for config files
> 2014-12-10 23:15:50.660 [NotebookApp] Attempting to load config file: ipython_config.py
> 2014-12-10 23:15:50.661 [NotebookApp] Loaded config file: /Users/jzuhone/.ipython/profile_default/ipython_config.py
> 2014-12-10 23:15:50.661 [NotebookApp] Attempting to load config file: ipython_notebook_config.py
> 2014-12-10 23:15:50.662 [NotebookApp] Loaded config file: /Users/jzuhone/.ipython/profile_default/ipython_notebook_config.py
> 2014-12-10 23:15:50.669 [NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
> 2014-12-10 23:15:50.684 [NotebookApp] The port 8888 is already in use, trying another random port.
> 2014-12-10 23:15:50.685 [NotebookApp] Serving notebooks from local directory: /Users/jzuhone
> 2014-12-10 23:15:50.685 [NotebookApp] 0 active kernels
> 2014-12-10 23:15:50.685 [NotebookApp] The IPython Notebook is running at: http://localhost:8889/
> 2014-12-10 23:15:50.685 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
>
> The “config changed” message does not show up after loading the notebook config, and the change in the config option does not even take place. Can anyone clarify what is going on here?
>
> Best,
>
> John ZuHone
>

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user