我打算在Ubuntu 22.04LTS下使用Spyder + Jupyter,我创建了一个virtualenv(没有Anaconda),在那里我安装了jupyter并启动了spyder,大致遵循this:
virtualenv spyder
source spyder/bin/activate
pip install jupyter spyder
pip install spyder-notebook
pip install jupyterlab
pip install notebook
pip install nbconvert
pip install voila
spyder &
但在spyder
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
[W 2022-11-17 15:58:36.430 LabApp] 'password' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-11-17 15:58:36.430 LabApp] 'password' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2022-11-17 15:58:36.436 LabApp] JupyterLab extension loaded from /home/santiago/Documents/soft-hard-ware/python/envs/spyder/spyder/lib/python3.10/site-packages/jupyterlab
[I 2022-11-17 15:58:36.436 LabApp] JupyterLab application directory is /home/user1/Documents/soft-hard-ware/python/envs/spyder/spyder/share/jupyter/lab
[I 15:58:36.525 SpyderNotebookServer] Serving notebooks from local directory: /tmp/spyder-user1/notebooks
[I 15:58:36.525 SpyderNotebookServer] Jupyter Notebook 6.5.2 is running at:
[I 15:58:36.525 SpyderNotebookServer] http://localhost:8888/?token=173564737e999d60998a362def73788fab59e6c93fe6e3f8
[I 15:58:36.525 SpyderNotebookServer] or http://127.0.0.1:8888/?token=173564737e999d60998a362def73788fab59e6c93fe6e3f8
[I 15:58:36.525 SpyderNotebookServer] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:58:36.527 SpyderNotebookServer]
To access the notebook, open this file in a browser:
file:///home/user1/.local/share/jupyter/runtime/nbserver-4275-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=173564737e999d60998a362def73788fab59e6c93fe6e3f8
or http://127.0.0.1:8888/?token=173564737e999d60998a362def73788fab59e6c93fe6e3f8
服务器正在运行,可能有一些功能没有正确设置,因为这是我在firefox中加载file:///home/user1/.local/share/jupyter/runtime/nbserver-4275-open.html时看到的
在spyder中,当从底部的选项卡从 Editor 切换到 Notebook 时,我什么也看不到,没有输入代码或其他内容的可能性,无论是选择 New Notebook 还是从右上角的三行菜单中打开现有的笔记本。
我怎样才能让spyder使用笔记本电脑?
相关:
1条答案
按热度按时间yxyvkwin1#
我也遇到了同样的问题,经过几天的努力,我终于找到了基于这个答案的解决方案:https://stackoverflow.com/a/74428737/21105946
因此,在运行Spyder之前,运行以下命令即可: