Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imjoy plugin loaded check. Or always show some cell output. #685

Open
PaulHax opened this issue Oct 18, 2023 · 0 comments
Open

Imjoy plugin loaded check. Or always show some cell output. #685

PaulHax opened this issue Oct 18, 2023 · 0 comments

Comments

@PaulHax
Copy link
Collaborator

PaulHax commented Oct 18, 2023

When folks first pip install itkwidgets, my understanding is folks must refresh the notebook page to load the Imjoy extension. If they don't, view(thing) shows no cell output. Should always show some output.

The Env check notebook has some code to cope with that:

%%javascript
let needReload = (typeof window.loadImJoyRPC === "undefined");
if (needReload) {
    needReload = false;
    location.reload();
}

Is it possible to put this this check "client" side and show a error message with what to do about it.

Also, the check should check the Imjoy version number, as having an old Imjoy version passes this check, but still get no viewer rendering because error caused by Server/Client Imjoy version incomatablity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant