IPython - 缺少ipython_notebook_config.py

kra*_*ter 6 ipython python-2.7

当我创建配置文件时,只创建了2个配置文件,而不是5个.

ipython profile create test_3

[ProfileCreate] Generating default config file: u'/root/.ipython/profile_test_3/ipython_config.py'
[ProfileCreate] Generating default config file: u'/root/.ipython/profile_test_3/ipython_kernel_config.py'
Run Code Online (Sandbox Code Playgroud)

我安装了2个版本的python,2.6.6和2.7.我已经为python创建了一个使用/usr/bin/python2.7的别名

我已经安装了easy_install和pip

使用pip安装的软件包的完整列表:

alabaster(0.7.6)appnope(0.1.0)Babel(2.0)backports.ssl-match-hostname(3.4.0.2)certifi(2015.4.28)decorator(4.0.2)Django(1.8.3)docutils(0.12) funcsigs(0.4)functools32(3.2.3.post2)gnureadline(6.3.3)ipykernel(4.0.3)ipyparallel(4.0.0) ipython(4.0.0)ipython-genutils(0.1.0) ipywidgets(4.0.2)Jinja2(2.8)jsonschema(2.5.1)jupyter-client(4.0.0)jupyter-core(4.0.2)MarkupSafe(0.23)matplotlib(1.4.3)mistune(0.7)mock(1.3. 0)nbconvert(4.0.0)nbformat(4.0.0)nose(1.3.7)notebook(4.0.1)numpy(1.9.2)numpydoc(0.5)pandas(0.16.2)path.py(7.6)pbr( 1.4.0)pexpect(3.3)pickleshare(0.5)pip(7.1.0)ptyprocess(0.5)Pygments(2.0.2)pyparsing(2.0.3)pyreadline(2.0)python-dateutil(2.4.2)pytz(2015.4) pyzmq(14.7.0)qtconsole(4.0.0)requests(2.7.0)scikit-learn(0.16.1)scipy(0.16.0)setuptools(18.1)simplegeneric(0.8.1)six(1.9.0)snowballstemmer( 1.2.0)Sphinx(1.3.1)sphinx-rtd-theme(0.1.8)terminado(0.5)testpath(0.2)tornado(4.2.1)traitlets(4.0.0)

我错过了什么吗?有人可以将我链接到ipython_notebook_config.py文件,以便我可以在默认配置文件中使用它吗?强制执行是错误的吗?

我已经从网上添加了一个ipython_notebook_config.py并对其进行了编辑......它似乎忽略了它.我正在指定端口8888,它的列表端口为8889.此外,我无法连接到那个笔记本.

Viv*_*ani 10

自"大转换"以来,jupyter的情况发生了变化,其中笔记本配置已迁移到.jupyter文件夹.如果您已经有现有的ipython笔记本配置,请尝试执行以下操作:

jupyter migrate
Run Code Online (Sandbox Code Playgroud)

如果您的笔记本配置丢失(这是我启动ipython创建配置文件时的情况),您可以使用以下命令生成jupyter配置:

jupyter notebook --generate-config
Run Code Online (Sandbox Code Playgroud)

这应该创建一个〜/ .jupyter/jupyter_notebook_config.py文件,其中包含相关的笔记本设置,可以取消注释/修改,如端口和密码.

应该注意的是,对于配置文件,jupyter不再支持多个配置文件,但可以通过命令行引用它们(有关详细信息,请参阅http://jupyter.readthedocs.org/en/latest/migrating.html#profiles)

文档:http://jupyter.readthedocs.org/en/latest/migrating.html


kra*_*ter -2

您可以跳过创建配置文件并直接传递参数: IPYTHON_OPTS="notebook --no-browser --ip='*' --port=8889" $SPARK_HOME/bin/pyspark

  • 这并没有解决问题中的问题...他(即我)可以/应该做什么来创建 ipython_notebook_config.py 文件,或者不再需要它,或者它已被替换ipython_kernel_config.py 文件? (2认同)