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?
IPython stores its files—config, command history and extensions—in the directory ~/. ipython/ by default. If set, this environment variable should be the path to a directory, which IPython will use for user data.
Jupyter doesn't load or doesn't work in the browserTry disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter. If you have security software, try turning it off temporarily, and look in the settings for a more long-term solution.
Before we get into the solutions, what is a kernel error? A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python are two different software entirely. So, a kernel error occurs when Jupyter fails to connect with a specific version of Python.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With