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

Switch to JsDelivr CDN for pyodide 0.15.0 #3020

Merged
merged 3 commits into from
Mar 20, 2021

Conversation

rth
Copy link
Contributor

@rth rth commented Jan 5, 2021

This switches to JsDelivr CDN while still using pyodide 0.15.0, in order to reduce usage of previous CDN endpoint.

The only thing I'm not sure about is whether iodide would set windows.languagePluginUrl to https://cdn.jsdelivr.net/v0.15.0/full/ in this case before loading pyodide.js. It does seem to be set here but I could be missing something. This is a requirement, otherwise packages will still be loaded from the previous CDN which is hardcoded in pyodide.js.

It we update to pyodide 0.16.1, which should also be compatible with iodide, this should no longer be be an issue, though it includes Python 3.8 and updated packages so there is a slightly higher risk of it breaking something in existing notebooks.

@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #3020 (8c532f9) into master (2183bdc) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 8c532f9 differs from pull request most recent head 9f1744a. Consider uploading reports for the commit 9f1744a to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3020   +/-   ##
=======================================
  Coverage   72.82%   72.82%           
=======================================
  Files         247      247           
  Lines        6128     6128           
  Branches      994      994           
=======================================
  Hits         4463     4463           
  Misses       1646     1646           
  Partials       19       19           
Impacted Files Coverage Δ
src/editor/state-schemas/language-definitions.js 83.33% <100.00%> (ø)

@wlach wlach self-requested a review March 20, 2021 12:59
src/editor/state-schemas/language-definitions.js Outdated Show resolved Hide resolved
@wlach
Copy link
Contributor

wlach commented Mar 20, 2021

Sorry for the delay on this @rth. I think indeed using the older version here is what's desirable, I'll go ahead and merge.

@wlach wlach merged commit 736aaa8 into iodide-project:master Mar 20, 2021
@rth rth deleted the pyodide-jsdelivr branch March 25, 2021 13:32
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