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

Add support for rendering in pyodide/pyscript #5338

Merged
merged 2 commits into from
Jun 26, 2022
Merged

Conversation

philippjfr
Copy link
Member

Implements a pyodide_extension that registers MIME rendering hooks that work in pyodide/pyscript.

@philippjfr philippjfr force-pushed the pyodide_support branch 2 times, most recently from a189fde to 1d21f07 Compare June 17, 2022 12:48
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2022

Codecov Report

Merging #5338 (e3067e2) into master (d4a2de2) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master    #5338      +/-   ##
==========================================
- Coverage   88.16%   88.16%   -0.01%     
==========================================
  Files         300      300              
  Lines       61912    61915       +3     
==========================================
+ Hits        54585    54587       +2     
- Misses       7327     7328       +1     
Impacted Files Coverage Δ
holoviews/__init__.py 72.22% <66.66%> (-0.86%) ⬇️
holoviews/util/__init__.py 75.51% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4a2de2...e3067e2. Read the comment docs.

@MarcSkovMadsen
Copy link
Collaborator

Will this enable streaming to plots or from plots? I.e. dynamically updating the plot data or getting hover/ selection etc. events.

@philippjfr
Copy link
Member Author

philippjfr commented Jun 17, 2022

Will this enable streaming to plots or from plots? I.e. dynamically updating the plot data or getting hover/ selection etc. events.

This is already possible with master if you render plots manually using the pn.io.pyodide.write or .servable(target=...) API. This PR simply allows the pyscript repr system to work on HoloViews objects.

@philippjfr philippjfr merged commit 6647ddc into master Jun 26, 2022
@philippjfr philippjfr deleted the pyodide_support branch June 26, 2022 12: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.

3 participants