Open Ramkumar-R opened 4 days ago
Hey @Ramkumar-R, thanks for reporting. I have a couple of questions for you, according to what you said:
What steps reproduce the problem?
- Open a Jupyter notebook.
Did you open a notebook in JupyterLab and then connect to its kernel from Spyder? Or are you using Spyder-notebook to work with notebooks?
- Define some variable say j = 3
- Click the square box icon for "Interrupt kernel" and enter "j" in a cell
Could you post a screenshot or a small video showing that? It'd help us a lot to better understand your problem.
@ccordoba12 Thank you so much for looking at this! Here are some screenshots. The first shows a Jupyter Notebook (opened standalone) and what happens when I do an "Interrupt Kernel". It's a keyboard interrupt and then the variable i is preserved. The next two screenshots show what happens when I open the same notebook in Spyder (I installed Spyder and its Notebook plugin just yesterday). Does this make it clearer? "Interrupt Kernel" should do just that - interrupt it, without losing variables. I was looking to move from browser-based Jupyter to Spyder since Spyder is just "WOW" but this is a bit of a showstopper :-(.
Does this make it clearer? "Interrupt Kernel" should do just that - interrupt it, without losing variables.
Yes, this is much clearer now, thanks!
I was looking to move from browser-based Jupyter to Spyder since Spyder is just "WOW" but this is a bit of a showstopper :-(.
Thanks for your kind words! And I totally understand this a serious bug that prevents to use our notebook plugin.
Since this is directly related to that plugin, I'm going to move this issue to its corresponding repository.
@jitseniesen, are you able to reproduce this problem?
@Ramkumar-R Thank you for the report. I have reproduced the issue, but I need to look further into it to see what is going wrong.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
With Jupyter notebooks, "Interrupt Kernel" does just that - stops the kernel and all variables are preserved. "Restart kernel" is a separate option. However upon using a fresh installation of Spyder with the Notebook plugin, clicking "Interrupt kernel" or the square box icon restarts the kernel and all variables are lost.
What steps reproduce the problem?
What is the expected output? What do you see instead?
"The kernel appears to have died..." and Traceback... Name 'j' is not defined. Neither of the above should not happen.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies