Widgets don't show in docs
davidbrochart opened this issue · comments
David Brochart commented
Problem
The widgets don't appear in the documentation, e.g.: https://ipycytoscape.readthedocs.io/en/latest/#simple-example.
Ian Hunt-Isaak commented
:( indeed.
Errors from the console:
The resource from “https://ipycytoscape.readthedocs.io/en/latest/jupyter-cytoscape.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
latest
Loading failed for the <script> with source “https://ipycytoscape.readthedocs.io/en/latest/jupyter-cytoscape.js”. latest:1:1
Falling back to https://unpkg.com/ for jupyter-cytoscape@^1.0.4 18 embed-amd.js:208:86198
Referrer Policy: Ignoring the less restricted referrer policy “no-referrer-when-downgrade” for the cross-site request: https://unpkg.com/jupyter-cytoscape@%5E1.0.4/dist/index.js require.min.js:1:16160
You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine. cytoscape.cjs.js:827:12
Uncaught (in promise) Error: An element must be of type `nodes` or `edges`; you specified ``
ue cytoscape.cjs.js:811
_e cytoscape.cjs.js:1076
add cytoscape.cjs.js:13379
addNodeModel widget.ts:377
Ce index.js:41
Ce index.js:41
addNodeModel index.js:41
update embed-amd.js:46
render widget.ts:122
cytoscape.cjs.js:811:8
Uncaught (in promise) Error: An element must be of type `nodes` or `edges`; you specified ``
ue cytoscape.cjs.js:811
_e cytoscape.cjs.js:1076
add cytoscape.cjs.js:13379
addEdgeModel widget.ts:399
Ce index.js:41
Ce index.js:41
addEdgeModel index.js:41
update embed-amd.js:46
render widget.ts:129
cytoscape.cjs.js:811:8
Ian Hunt-Isaak commented
maybe it's because of this?
ipycytoscape/docs/environment.yml
Line 7 in 3830051
David Brochart commented
Indeed, ipycytoscape doesn't work with JupyterLab 2.