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.

2
7 comments

Does it happen only when you are in scientific mode?

Could you provide some steps for reproducing the problem?

0

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

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

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

1

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
 

3

This is lame. How can we debug cells???  The whole idea of an IDE is that you can easily debug code. Matlab does this out of the box for decades now...

1

Please sign in to leave a comment.