Python
Jupyter notebook config
After I update ipython to 4.0, notebook also updated to jupyter 1.0.
When I run ipnbserver, which is a alias define in my .bashrc
file:
ipython notebook --profile=nbserver
, it says:
[W 21:40:37.263 NotebookApp] Unrecognized alias: '--profile=nbserver', it will probably have no effect.
[I 21:40:37.295 NotebookApp] Serving notebooks from local directory: /home/sky
[I 21:40:37.295 NotebookApp] 0 active kernels
[I 21:40:37.295 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 21:40:37.295 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Then I try to find some help:
jupyter -h
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
Available subcommands: console kernelspec migrate nbconvert nbextension
notebook qtconsole trust
And:
jupyter-notebook -h
find a option may be work:
--config= (JupyterApp.config_file)
Default: u''
Full path of a config file.
Then try:
jupyter-notebook --config='/home/sky/.jupyter/jupyter_server_config.py'
IT WORKS!!