问题
I'd like to know how to set breakpoints in IPython
notebook on PyCharm.
If it's possible, please let me know.
回答1:
You must start IPython Notebook from Pycharm's run
- Find the IPython path (ex
which ipython
on linux). Copy the resulting path, we will need it! - On PyCharm go to Run > Edit Configuration > + button on top left most corner (add configuration) > Choose Python. Give your configuration a name.
- On the configuration tab, in the Script textbox, paste the path from step 1. On the script, parameters write
notebook
. - Apply then Ok.
This is essentially like calling ipython notebook
from the terminal
Now place your brakepoints and run the notebook from PyCarm (Shift+F10 or click the playbutton).
来源:https://stackoverflow.com/questions/31365093/can-pycharm-set-breakpoints-on-ipython-notebook