vatlab/jupyterlab-sos

Magic does not work after error

Closed this issue · 7 comments

gaow commented

I've got various issues in my recent experiences with JupyterLab that I did not get a chance to report until today. But let me start with maybe only a couple of them hoping that they are somewhat related and the fix of one leads to fix of another. Here is the first one:

2018-06-11-11-18-08_scrot

To reproduce, open up SoS and use an R cell to make a mistake. Then try some magic eg %cd. It will complain.

Next, click on the reload icon to restart notebook:

2018-06-11-11-24-52_scrot

then the cd works, but will throw in a warning message:

2018-06-11-11-25-30_scrot

gaow commented

I believe a similar yet slightly different symptom is observed for %revisions so I hope fixing this ticket will fix both.

The %cd R problem is caused by outdated sos-r module. Please upgrade.

Sorry, it only happens after error? I will check.

gaow commented

Hmm seems so ... I'll leave the ticket open for a while until I confirm my other unreported ill-behaved magics work after the upgrade. Thanks a lot!

gaow commented

Okay in my ticket I reported 2 things:

  1. cd_command issue after error, which is fixed after upgrade.
  2. click on the restart icon after error, and see the restart jupyter server prompt. That is not fixed by the upgrade.

I can somehow reproduce this bug by evaluate any cell, restart, and re-evaluate, if it is ok, restart kernel again.

The problem seems to have disappeared. I have added a few debug messages for kernel change so please re-open this ticket with message copied from the browser console window if you still experience any problem with missing sos-comm.