每次我导入pixiedust时,Jupyter笔记本内核都会重新启动

2024-03-29 09:39:12 发布

您现在位置:Python中文网/ 问答频道 /正文

运行一行代码“import pixiedust”会使内核死亡,并在每次尝试时自动重新启动。我在MacOS BigSur 11.2.3中通过Anaconda使用Jupyter笔记本电脑

import pixiedust

这是我唯一的一行代码,其余代码工作正常(不使用pixiedust的部分)

这是终端输出:

Last login: Sat Mar 27 16:26:47 on ttys001
/Users/avic/opt/anaconda3/bin/jupyter_mac.command ; exit;                       
(base) avic@Avis-MBP ~ % /Users/avic/opt/anaconda3/bin/jupyter_mac.command ; exit;
[I 16:31:00.239 NotebookApp] JupyterLab extension loaded from /Users/avic/opt/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 16:31:00.239 NotebookApp] JupyterLab application directory is /Users/avic/opt/anaconda3/share/jupyter/lab
[I 16:31:00.242 NotebookApp] Serving notebooks from local directory: /Users/avic
[I 16:31:00.242 NotebookApp] The Jupyter Notebook is running at:
[I 16:31:00.242 NotebookApp] http://localhost:8888/?token=8d705f0c1f4efa59a8d4edc4643ad87ded410f4af2f62ea6
[I 16:31:00.242 NotebookApp]  or http://127.0.0.1:8888/?token=8d705f0c1f4efa59a8d4edc4643ad87ded410f4af2f62ea6
[I 16:31:00.242 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:31:00.249 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///Users/avic/Library/Jupyter/runtime/nbserver-57976-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=8d705f0c1f4efa59a8d4edc4643ad87ded410f4af2f62ea6
     or http://127.0.0.1:8888/?token=8d705f0c1f4efa59a8d4edc4643ad87ded410f4af2f62ea6
[I 16:31:09.251 NotebookApp] Kernel started: b3400759-7e32-4b4d-87c8-77676fafe504
[I 16:31:15.255 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel b3400759-7e32-4b4d-87c8-77676fafe504 restarted

我从来没有使用过这个工作区,但我的大学要求我

请帮忙:)