Dan*_*sen 18 python ipython-notebook jupyter-notebook
我希望能够使用Jupyter笔记本中的控制台来摆弄环境.添加一个额外的单元格意味着我总是必须滚动到最底部或创建新的单元格,无论我想要一个"类似控制台"的文本字段.是否可以有一个永久的控制台窗口,例如在窗口的底部?
谢谢!
Vin*_* W. 11
你可以启动一个连接到同一个IPython内核的Jupyter qt控制台 http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Connecting%20with%20the%20Qt%20Console.html
您可以使用 JupyterLab。
这将笔记本、控制台、终端整合到一个界面中,就像 R-Studio 一样。 JupyterLab
在文档中,有两种选择,步骤如下:
在jupyther notebook运行时,在单元格中运行以下魔术命令:
%qtconsole
它将启动一个新的ipython qtconsole。
在jupyther notebook运行时,在单元格中运行以下魔术命令:
%connect_info
输出将是这样的:
{
"stdin_port": 234,
"ip": "127.0.0.1",
"control_port": 324234 ,
"hb_port": 50698,
"signature_scheme": "hasgd6",
"key": "8d91ba69-fasdfasdgadga6e34",
"kernel_name": "",
"shell_port": 6****9,
"transport": "tcp",
"iopub_port": 3***0
}
Paste the above JSON into a file, and connect with:
$> jupyter <app> --existing <file>
or, if you are local, you can connect with just:
$> jupyter <app> --existing kernel-773f517f-bf26-4102-9329-888a2dac0f4e.json
or even just:
$> jupyter <app> --existing
if this is the most recent Jupyter kernel you have started.
Run Code Online (Sandbox Code Playgroud)
在终端中编写适合您需求的解决方案。例如,我在本地使用它,我想要一个qtconsole:
jupyter qtconsole-现有kernel-773f517f-bf26-4102-9329-888a2dac0f4e.json
这将qtconsole使用相同的内核打开一个,因此您将有权访问所有变量。
| 归档时间: |
|
| 查看次数: |
11965 次 |
| 最近记录: |