Debugger in Pycharm scientific mode

Answered

Hello, is there an option to debug code in scientific mode? It doesn't seem to take into account any breakpoints I insert.

Thanks.

5 comments
Comment actions Permalink

Does it happen only when you are in scientific mode?

Could you provide some steps for reproducing the problem?

0
Comment actions Permalink

Yes, only in scientific mode.  

Steps to reproduce:

write the code below in scientific mode, Insert a breakpoint at any of the two lines.
Breakpoint ignored when running cell.

Is there an option to debug a specific cell? this is actually what I'm looking for.

#%%
a = 1
b = 2

#%%

0
Comment actions Permalink

No, it's not possible to debug specific cells in scientific mode. You can do it in Jupyter Notebook in PyCharm though.

https://www.jetbrains.com/help/pycharm/running-jupyter-notebook-cells.html#debug-notebook

0
Comment actions Permalink

This would be a really nice feature. Otherwise jupyterlab is more preferable for me

0
Comment actions Permalink

Using  Jupyter Notebook within pyCharm is slow and experiemental / unreliable.

I would like individual cell debugging in scientific mode.

Ipython backend provide all the necessary API for this.

Spyder already implemented this feature I want.
https://github.com/spyder-ide/spyder/issues/9361
 

2

Please sign in to leave a comment.