Comments (4)
Thanks for opening the issue. There is currently no maintainer actively managing matplotlib-pyodide, so it would be great if you could contribute to the issues you see.
from matplotlib-pyodide.
Thanks for opening the issue. There is currently no maintainer actively managing matplotlib-pyodide, so it would be great if you could contribute to the issues you see.
I'm glad to maintain this repo. BTW are there any FAQs to debug emscripten whls like this?
from matplotlib-pyodide.
BTW are there any FAQs to debug emscripten whls like this?
No, and it's a bit inconvenient but we are happy to provide suggestions / help if you get stuck. It's easier for wheels the work in node, but matplolib_pyodide
is browser only.
I think the best thing is to unpack the wheel into some folder:
tmp-site/unpacked_wheel_pkg1
tmp-site/unpacked_wheel_pkg2
...
then do:
dirHandle = await showDirectoryPicker();
const nativefs = await pyodide.mountNativeFS("/mount_dir", dirHandle);
pyodide.pyimport("sys").path.insert(0, "/mount_dir")
and pick the tmp-site
directory. Then you should be able to use the files on disk.
https://pyodide.org/en/stable/usage/file-system.html#experimental-using-the-native-file-system-in-the-browser
from matplotlib-pyodide.
I successfully overload the destroy() function, and matplotlib does generate picture from "Figure 1".
But a new bug is, pyodide cannot call div.removeChild() method successfully.
from matplotlib-pyodide.
Related Issues (20)
- Custom fonts
- a better method for configuring where matplotlib figures are added to the DOM HOT 3
- Move matplotlib benchmarks to this repo
- Add tests HOT 1
- Use matplotlib figures externally HOT 1
- matplotlab chinese font messy code HOT 1
- Document some pyodide matplotlib suggestions for node and deno HOT 4
- ModuleNotFoundError: No module named 'matplotlib.backends.html5_canvas_backend' in Pyodide v0.22.0 onwards HOT 1
- Add support for plt.pause(...) HOT 3
- Upgrade build dependency to v1.x HOT 3
- AttributeError: 'TimerWasm' object has no attribute '_timer' HOT 3
- setting plt.rcParams['figure.figsize'] does not work. HOT 1
- matplotlib always generates double times of output divs HOT 1
- Interactive Slider Issue: 'Figure' object has no attribute 'canvas' HOT 3
- plotting fails with `document.pyodideMplTarget` set HOT 9
- Generating the same graph multiple times with new `document.pyodideMplTarget` objects cause every 2nd graph to disappear. HOT 1
- Attempts to grab fonts from `${origin}/fonts`? HOT 5
- html5_canvas_backend no longer works. HOT 2
- wasm_backend vs. html5_canvas_backend HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matplotlib-pyodide.