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
I ran into two issues in the show_instrument() functionality of macstasscript (version "0.0.55").
Windows 10
show_instrument() only works if one hacks the call: to mcdisplay-webgl i.e without path and " " (see below)
It fails otherwise. I think it is somehow caused by jupyter lab running in the dedicated mcstas-shell
MacOS M1 - Safari
the problem does not appear. The instrument visualisation can be opened in the notebook cell.
The issue seems to be caused by the implementaion of the "Blocking Cross Origin" policy (CORS)
in certain browsers in certain operating systems.
It is triggered when Jupyter is trying to open an local html file that again loads some javascript files.
Interestingly opening the same html in a new tab succeeds.
I ran into two issues in the show_instrument() functionality of macstasscript (version "0.0.55").
show_instrument() only works if one hacks the call: to mcdisplay-webgl i.e without path and " " (see below)
It fails otherwise. I think it is somehow caused by jupyter lab running in the dedicated mcstas-shell
Windows and MacOs:
I get only the (empty) output in the notebook cell:
new_tab=True opens a new browser tab and works as intended
IFrame() seems to find the html but not the js files
The text was updated successfully, but these errors were encountered: