Comments (9)
Here's a one with permissive licence antiyawn
from pyodide.
Thanks @nixphix ! Would you like to make a Pull Request to add it?
from pyodide.
from pyodide.
@rth could you give me some pointer on how to add the font asset
from pyodide.
I'm not exactly sure. There is a packages/matplotlib/src/fontList.json file that lists available fonts available under /lib/python3.7/site-packages/matplotlib/mpl-data
in the virtual filesystem of the built package. My guess is that the matplolib setup would need to download this additional font and bundle it in somewhere in the filesystem, then one would need to add an entry to fontList.json
. It's 25 kB font file, and not a frequently used one, so adding it needlessly to the main pyodide package is probably not optimal (though possibly acceptable).
@mdboom would have a better understanding of what needs to be done.
from pyodide.
Though the issue is that adding some custom asset is much easier e.g. for the main package (where one can just write the logic in a Makefile
) than for a packaged python package (which uses the pyodide_build
setup).
Maybe we could add something similar to the build->script
entry in conda's meta.yaml, that would allow to run arbitrary code. For instance, here we would then use it to run some code to download this asset after patches are applied in matplotlib, but before the install process happens.
from pyodide.
@mdboom @rth If no one is working on it, can I be assigned this perhaps? Moreover, can I have some starter tips as well?
from pyodide.
@madhur-tandon: I've assigned you. @rth's notes above are accurate. It basically needs to be added to the /lib/python3.7/site-packages/matplotlib/mpl-data directory at the time the package is built, and the fontList.json
needs to be updated to refer to it. I think the extra size is reasonable -- it's probably not worth the complexity to have it in, for example, another package.
from pyodide.
@mdboom @rth Made a PR for adding the font asset. Also, It is better to use the post
entry in my opinion rather than the script
entry in the build
section of the meta.yaml
file. The reasons for this are mentioned in the PR. I have also included a screenshot for the same as a proof that it works. Please let me know if this is feasible. I guess this is straightforward though.
from pyodide.
Related Issues (20)
- `<console>` is hard-coded, causing traceback disappear when filename specified HOT 3
- pymupdf: A high performance Python library HOT 1
- Is it possible to bypass the version check? HOT 1
- `stack-data`'s dependency map is wrong HOT 6
- run_sync prints caught exceptions HOT 1
- A single, public, Python API for installing package HOT 9
- `IN_NODE` flag is `false` in `bun` runtime
- RFC Plans for unvendoring package recipes
- Improve generic typing for `to_js` and `JsProxy` HOT 3
- Add a `--force` option to the `pyodide skeleton pypi` CLI to allow updating recipes for packages with patches HOT 3
- Can `last_expr_or_assign` mode support imports HOT 1
- Request to add the popular reportlab PDF generation package to pyodide HOT 7
- add memray (memory profiler)
- Contents of Release Files could be explained HOT 10
- Can't run tests for packages in the Docker container HOT 5
- add skyfield (and sgp4)
- add library in turtle HOT 1
- The REPL is down HOT 13
- Request to add pikepdf HOT 2
- Micropi cannot find a pure Python 3 wheel fro google-cloud-storage HOT 1
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 pyodide.