PyCharm可以在ipython笔记本上设置断点吗? [英] Can PyCharm set breakpoints on ipython notebook?

查看:145
本文介绍了PyCharm可以在ipython笔记本上设置断点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在PyCharm上的 IPython 笔记本中设置断点。

I'd like to know how to set breakpoints in IPython notebook on PyCharm.

如果有可能,请告诉我。

If it's possible, please let me know.

推荐答案

你必须从 Pycharm的运行启动IPython Notebook


  1. 找到IPython路径(前哪个ipython 在linux上)。复制生成的路径,我们将需要它!

  2. 在PyCharm上,转到最左上角的运行>编辑配置> + 按钮(添加配置)>选择蟒蛇。
    为您的配置命名。

  3. 在配置选项卡的脚本文本框中,粘贴步骤1中的路径。在脚本上,参数写入笔记本

  4. 申请然后确定。

  1. Find the IPython path (ex which ipython on linux). Copy the resulting path, we will need it!
  2. On PyCharm go to Run > Edit Configuration > + button on top left most corner (add configuration) > Choose Python. Give your configuration a name.
  3. On the configuration tab, in the Script textbox, paste the path from step 1. On the script, parameters write notebook.
  4. Apply then Ok.

这基本上是比如从终端调用 ipython notebook

This is essentially like calling ipython notebook from the terminal

现在放置刹车点并从PyCarm运行笔记本( Shift + F10 或点击播放按钮。

Now place your brakepoints and run the notebook from PyCarm (Shift+F10 or click the playbutton).

这篇关于PyCharm可以在ipython笔记本上设置断点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆