Skip to content

Commit

Permalink
Add note about current state of HTML5 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Dec 16, 2024
1 parent a010c18 commit 8991c7b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions matplotlib_pyodide/html5_canvas_backend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
#
# HTMl5 Canvas backend for Matplotlib to use when running Matplotlib in Pyodide, first
# introduced via a Google Summer of Code 2019 project:
# https://summerofcode.withgoogle.com/archive/2019/projects/4683094261497856
#
# Associated blog post:
# https://blog.pyodide.org/posts/canvas-renderer-matplotlib-in-pyodide
#
# TODO: As of release 0.2.3, this backend is not yet fully functional following
# an update from Matplotlib 3.5.2 to 3.8.4 in Pyodide in-tree, please refer to
# https://github.com/pyodide/pyodide/pull/4510.
#
# This backend has been redirected to use the WASM backend in the meantime, which
# is now fully functional. The source code for the HTML5 Canvas backend is still
# available in this file, and shall be updated to work in a future release.
#
# Readers are advised to look at https://github.com/pyodide/matplotlib-pyodide/issues/64
# and at https://github.com/pyodide/matplotlib-pyodide/pull/65 for information
# around the status of this backend and on how to contribute to its restoration
# for future releases. Thank you!

import base64
import io
import math
Expand Down

0 comments on commit 8991c7b

Please sign in to comment.