简体   繁体   English

我只能通过jupyter笔记本使用ipython吗?

[英]Can I only use ipython through the jupyter notebook ?

I'm trying to do the following tutorial : Tensorflow Object Detection API on Windows - error "ModuleNotFoundError: No module named 'utils'" 我正在尝试执行以下教程: Windows上的Tensorflow对象检测API-错误“ ModuleNotFoundError:没有名为'utils'的模块”

I managed to do Step 9 whuch is running the programm with Jupyter but got stuck at step 10 "open the script in your chosen Python editor (ex. PyCharm) and run it". 我设法完成了第9步,使用Jupyter运行了程序,但是陷入了第10步:“在所选的Python编辑器(例如PyCharm)中打开脚本并运行它”。 I have the following error : 我有以下错误:

Traceback (most recent call last):
  File "C:\Users\leahj\Documents\models-master\research\object_detection\object_detection_tutorial.py", line 40, in <module>
    get_ipython().run_line_magic('matplotlib', 'inline')
NameError: name 'get_ipython' is not defined

which is probably coming from this line : 这可能来自此行:

get_ipython().run_line_magic('matplotlib', 'inline')

I have already downloaded the ipython module but from what I have undertand I can only use it through Jupyter ? 我已经下载了ipython模块,但是根据我的理解,我只能通过Jupyter使用它吗? Which makes no sense with the instruction of step 10. Any idea ? 这与步骤10的指令没有任何意义。

By the way, I'm still very confused about why the jupyter notebook is better than the IDLE shell so if somebody could help me for that too ? 顺便说一句,我仍然对为什么jupyter笔记本要比IDLE外壳更好感到困惑,所以如果有人也可以帮助我呢?

type IPython it should work. 键入IPython应该可以工作。 hope it helps 希望能帮助到你

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

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