You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure the notebook is trusted, and execute the cell.
WHAT SHOULD HAPPEN
The output should say "worked!".
More specifically, the output should be an html widget containing a div with its inner text set to "worked!".
Note that, in google collab, this is in fact the result you get.
WHAT ACTUALLY HAPPENS
The output gets stuck at "loading...". Additionally, if you open the browser's javascript console, you will find an error:
jquery.min.js:2 Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".
at b (jquery.min.js:2:1)
at Pe (jquery.min.js:2:1)
at S.fn.init.append (jquery.min.js:2:1)
at OutputArea._safe_append (outputarea.js:458:1)
at OutputArea.append_execute_result (outputarea.js:497:1)
at OutputArea.append_output (outputarea.js:325:1)
at OutputArea.handle_output (outputarea.js:256:1)
at output (codecell.js:399:1)
at Kernel._handle_output_message (kernel.js:1199:1)
at i (jquery.min.js:2:1)
LIKELY CAUSE
It appears that, whatever mechanism is being used to translate the HTML returned by _repr_html_ into an output cell widget, it is not correctly translating import maps in a way that results in the javascript within the output cell having access to the declared import maps.
The text was updated successfully, but these errors were encountered:
Hi @Strilanc, thank you for submitting this issue. Could you please share which browser you are using? Would it be possible to test if this works for you in JupyterLab using Chrome? If so, Jupyter Notebook 7 should work as well . Thanks again!
Using JupyterLab version 4.0.0a30 in Brave, I am able to reproduce this issue (with or without shields up). Using the same version in Chrome, I am not able to reproduce; in other words, the code snippet above works in Chrome.
REPRO STEPS
From the command line, run
jupyter notebook
, create a new notebook, add a code cell, and put the following into the code cell:Make sure the notebook is trusted, and execute the cell.
WHAT SHOULD HAPPEN
The output should say "worked!".
More specifically, the output should be an html widget containing a div with its inner text set to "worked!".
Note that, in google collab, this is in fact the result you get.
WHAT ACTUALLY HAPPENS
The output gets stuck at "loading...". Additionally, if you open the browser's javascript console, you will find an error:
LIKELY CAUSE
It appears that, whatever mechanism is being used to translate the HTML returned by
_repr_html_
into an output cell widget, it is not correctly translating import maps in a way that results in the javascript within the output cell having access to the declared import maps.The text was updated successfully, but these errors were encountered: