Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 4c685d9

Browse files
Add note about current state of HTML5 backend
1 parent 6e679a4 commit 4c685d9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

matplotlib_pyodide/html5_canvas_backend.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
#
2+
# HTMl5 Canvas backend for Matplotlib to use when running Matplotlib in Pyodide, first
3+
# introduced via a Google Summer of Code 2019 project:
4+
# https://summerofcode.withgoogle.com/archive/2019/projects/4683094261497856
5+
#
6+
# Associated blog post:
7+
# https://blog.pyodide.org/posts/canvas-renderer-matplotlib-in-pyodide
8+
#
9+
# TODO: As of release 0.2.3, this backend is not yet fully functional following
10+
# an update from Matplotlib 3.5.2 to 3.8.4 in Pyodide in-tree, please refer to
11+
# https://github.com/pyodide/pyodide/pull/4510.
12+
#
13+
# This backend has been redirected to use the WASM backend in the meantime, which
14+
# is now fully functional. The source code for the HTML5 Canvas backend is still
15+
# available in this file, and shall be updated to work in a future release.
16+
#
17+
# Readers are advised to look at https://github.com/pyodide/matplotlib-pyodide/issues/64
18+
# and at https://github.com/pyodide/matplotlib-pyodide/pull/65 for information
19+
# around the status of this backend and on how to contribute to its restoration
20+
# for future releases. Thank you!
21+
122
import base64
223
import io
324
import math

0 commit comments

Comments
 (0)