简体   繁体   English

在 PyCharm Professional 中安装 Jupyter 问题

[英]Installing Jupyter in PyCharm Professional problem

I am using PyCharm Professional to install Jupyter and following the tutorial: https://www.jetbrains.com/help/pycharm/jupyter-notebook-support.html我正在使用 PyCharm Professional 安装 Jupyter 并遵循教程: https ://www.jetbrains.com/help/pycharm/jupyter-notebook-support.html

However, after creating the .ipynb file and trying to run it I run into the following error: "This file does not belong to the project".但是,在创建 .ipynb 文件并尝试运行它后,我遇到了以下错误:“此文件不属于该项目”。 Also I have "Jupyter file outside of the module" greyed out (see screenshot).我也有“模块外的 Jupyter 文件”变灰(见截图)。 Is there anything I am missing?有什么我想念的吗? I've created a new .ipynb file inside the project (see screenshot).我在项目中创建了一个新的 .ipynb 文件(见截图)。

在此处输入图片说明

在此处输入图片说明

The problem here is that your .ipynb folder is inside the venv folder.这里的问题是您的 .ipynb 文件夹在venv文件夹内。 This venv folder should only contain the Python interpreter and third party packages.这个venv文件夹应该只包含 Python 解释器和第三方包。 You should not place any files you create under venv .应该把你在创建任何文件venv Instead, put them directly in the module folder jupyter-eda .相反,将它们直接放在模块文件夹jupyter-eda

我注意到scratches文件夹不在项目中,所以它有助于添加它......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM