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

Widgets don't show in docs #280

Open
davidbrochart opened this issue Oct 29, 2021 · 3 comments
Open

Widgets don't show in docs #280

davidbrochart opened this issue Oct 29, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@davidbrochart
Copy link

Problem

The widgets don't appear in the documentation, e.g.: https://ipycytoscape.readthedocs.io/en/latest/#simple-example.

@davidbrochart davidbrochart added the documentation Improvements or additions to documentation label Oct 29, 2021
@ianhi
Copy link
Collaborator

ianhi commented Nov 27, 2021

:( 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

@ianhi
Copy link
Collaborator

ianhi commented Nov 27, 2021

maybe it's because of this?

- jupyterlab=2

@davidbrochart
Copy link
Author

Indeed, ipycytoscape doesn't work with JupyterLab 2.

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

No branches or pull requests

2 participants