由于Python版本的更改非常少,所以我总是忘记了如何用最新的Python创建了一个新的Conda环境,用于朱庇特笔记本,所以我想下次我会把它列下来。在StackOverflow中,有一些不再起作用的答案,下面是我在StackOverflow上找到的对我有用的命令的编译(11月29日-2022年)。下面的这些说明适用于Windows,并使用Powershell (尽管它们也可以用于正常的命令行cmd.exe)
# make sure you are in the base env
# update conda
conda update conda
# to
我尝试用ipython notebook在终端中打开ipython,但它无法打开ipython笔记本。它会给出以下错误:
| ~/documents/ud120-projects/datasets_questions @ HJ (JiaHui)
| => ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and
will be removed in future versions.
[TerminalIPythonApp] WARNING | You l
在EC2实例中,我有一个具有python2 (默认)和ITorch内核的朱庇特笔记本服务器。当通过SSH命令行运行时,一切都很好。
问题是当我尝试在启动时运行时,笔记本服务器找不到ITorch内核。不过,对于python笔记本,我确实工作得很好。我得到的错误是一个窗口
Kernel not found
I couldn't find a kernel matching iTorch. Please select a kernel: (python2)
我所做的是将这一行添加到/etc/rc.local中
/home/ubuntu/anaconda2/bin/jupyter-noteb
在设置我的新系统时,我试图在VS Code上运行我的笔记本文件,但只要我打开VS Code,它就会给我这个错误
Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command
在输出中:
Unable to determine version of Jupyter, Traceback (most recent call last):
File "C:\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, i
我想使用jupyter notebook,但它不想连接到内核。我尝试更新anaconda并在anaconda提示符下启动jupyter。我得到了这个错误: Traceback (most recent call last):
File "C:\Users\felix\Anaconda3\lib\site-packages\tornado\web.py", line 1592, in _execute
result = yield result
File "C:\Users\felix\Anaconda3\lib\site-packages\tornad
我对jupyter/ipython很陌生。我通常在远程机器上启动笔记本并创建一个ssh隧道。如何设置隧道的详细信息可以在这里找到:
然而,很多时候,当我开始一个笔记本,它报告了0活动内核(不是所有的时间)。以下是这方面的截图:
-bash-4.1$ jupyter notebook --no-browser --port=7777
[NotebookApp] Serving notebooks from local directory: /x/y/z
[NotebookApp] 0 active kernels
[NotebookApp] The Jupyter Notebook is ru
我正在使用Jupyter Professional内置的PyCharm Notebook功能在我的项目中打开.ipynb文件。
当我尝试打印一个大字典时,我得到了错误:
IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.
C
我已经通过Anaconda安装了Qiskit,并在Python3.8中设置了一个虚拟环境。当我运行(.venv) C:\Users\brenm>jupyter notebook (在Anaconda提示中)时,它失败并抛出'jupyter' is not recognized as an internal or external command, operable program or batch file.
为了解决这个问题,我正确运行了(.venv) C:\Users\brenm>python -m pip install jupyter --user和jupy