voila-embed icon indicating copy to clipboard operation
voila-embed copied to clipboard

no current kernel found

Open havok2063 opened this issue 3 years ago • 8 comments

When testing the latest PR for 0.2.8 compatibility, https://github.com/mariobuikhuizen/voila-embed/pull/21, I'm now getting a no current kernel error message in the dev console.

voila.js:455 Uncaught (in promise) Error: No current kernel
    at Ys._get_comm_info (voila.js:455)
    at Ys._build_models (voila.js:469)
    at voila-embed.js:165

This was discovered during testing of the new kernel pooling aspect (https://github.com/voila-dashboards/hotpot_km/pull/8) which is using the latest voila==0.2.9 but this error also comes up when using the standard voila, version 0.2.7.

havok2063 avatar Apr 27 '21 14:04 havok2063

Yes, #21 depends on the bug fix in this PR: https://github.com/voila-dashboards/voila/pull/876.

Maybe you can use this PR when testing?

mariobuikhuizen avatar Apr 27 '21 15:04 mariobuikhuizen

Ok let me try that. What's weird is that yesterday everything was working properly but perhaps it shouldn't have been.

havok2063 avatar Apr 27 '21 15:04 havok2063

So that PR is merged; I did a git pull and fresh install of voila from master, and I'm still getting the same error.

havok2063 avatar Apr 27 '21 18:04 havok2063

The file voila-embed.js is not part of the installation of voila-embed, it has to be copied manually to your project. Maybe this step is missing?

mariobuikhuizen avatar Apr 28 '21 10:04 mariobuikhuizen

Yeah I had copied the new file over into my project but still had the same problem. I reset everything back to voila 0.2.7, the old embed, closed everything down, refreshed, and got it back to a workable state. I'll try again changing things piecemeal and see what happens. Do you know what kind of thing would trigger this error, in case it happens again, I know what to think about or look for?

havok2063 avatar Apr 28 '21 14:04 havok2063

Sometimes modifying an environment doesn't work well, so I always test in a new conda environment. Also, the fix in Voila is released as 0.2.10, so you don't have to install Voila from git any more.

mariobuikhuizen avatar Apr 29 '21 08:04 mariobuikhuizen

Ok cool. I'll upgrade everything, give it a shake, and see if everything works!

havok2063 avatar Apr 29 '21 13:04 havok2063

Looks like everything is back to normal. I've tested the voila=0.2.10 and the latest voila-embed work in the standard mode as well as the hotpot kernel pooling mode.

havok2063 avatar Apr 29 '21 15:04 havok2063