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

Not working on voila #22

Open
zerline opened this issue May 19, 2020 · 1 comment
Open

Not working on voila #22

zerline opened this issue May 19, 2020 · 1 comment

Comments

@zerline
Copy link
Collaborator

zerline commented May 19, 2020

When trying to use sage_combinat_widgets on voila, the following message appears on the browser console:

The resource from “http://localhost:8888/voila/sage-combinat-widgets.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

(although there is no such file in the code)

@zerline
Copy link
Collaborator Author

zerline commented May 19, 2020

Steps to reproduce

  1. Dockerfile
    FROM sagemath/sagemath:9.1.rc5
    RUN sage -pip install --upgrade jupyter_core jupyter_server nbformat nbclient nbconvert pygments voila
    RUN sage -pip install --upgrade ipywidgets sage_combinat_widgets
    ENTRYPOINT /usr/bin/sage -n jupyter --ip=0.0.0.0 --port=8888

  2. docker build, and docker run with -ti -p8888:8888

  3. Open a Sagemath notebook, and type:

from sage_combinat_widgets import *
GridViewWidget(Partition([4,3]))
  1. Try to voila

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