IPython - 缺少ipython_notebook_config.py [英] IPython - ipython_notebook_config.py missing

查看:319
本文介绍了IPython - 缺少ipython_notebook_config.py的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建个人资料时,只创建了2个配置文件,而不是5个。

When I'm creating a profile, only 2 config files are created, instead of 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'

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

I have 2 versions of python installed, 2.6.6 and 2.7. I have created an alias for python to use /usr/bin/python2.7

我已经安装了easy_install和pip

I have installed both easy_install and pip

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

The full list of packages installed with 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)
笔记本(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)
泡菜share(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)
龙卷风(4.2.1)
traitlets(4.0.0)

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文件,以便我可以在默认配置文件中使用它吗?执行是错误的吗?

Am I missing something? Can someone link me to a ipython_notebook_config.py file so i can use that in the default profile? Would that be wrong to enforce?

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

I have added a ipython_notebook_config.py from web and edit it..and it seems it's ignoring it..I'm specifying port 8888 and it's listing port 8889. Furthermore I can't connect to that notebook.

推荐答案

您可以跳过创建个人资料并通过参数直接:
IPYTHON_OPTS =notebook --no-browser --ip ='*' - port = 8889$ SPARK_HOME / bin / pyspark

You can skip creating a profile and pass the parameters directly: IPYTHON_OPTS="notebook --no-browser --ip='*' --port=8889" $SPARK_HOME/bin/pyspark

这篇关于IPython - 缺少ipython_notebook_config.py的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆