Skip to content

Add jQuery cdn url to fix rendering in nbviewer #39

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

Merged
merged 1 commit into from
Nov 23, 2018

Conversation

sbrunk
Copy link
Collaborator

@sbrunk sbrunk commented Nov 22, 2018

Yet another small JS fix.

Without defining a url for jQuery, rendering plotly charts doesn't work in nbviewer, because requirejs tries to load jQuery locally and fails.

You can see this in action here (check the browser console to see the errors):
https://nbviewer.jupyter.org/github/sbrunk/almond-examples/blob/master/plotly_examples.ipynb

In contrast the notebook using the fixed version nicely renders our charts:
https://nbviewer.jupyter.org/github/sbrunk/almond-examples/blob/jquery-fix/plotly_examples.ipynb

@alexarchambault
Copy link
Owner

Awesome!

@alexarchambault alexarchambault merged commit 0328584 into alexarchambault:master Nov 23, 2018
@sbrunk sbrunk deleted the add-jquery-dep branch November 23, 2018 10:22
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

Successfully merging this pull request may close these issues.

2 participants