-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Can't not refresh new font in running interpreter #16581
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
Comments
Maybe related to #13852 . |
Likely. It could also be that we have at least one level of caching that is not being properly cleared. |
Regardless of #13582, _rebuild is private API so we don't really support that use case (and I'm not sure it's worth adding public API for hot-regen of the font cache...). |
I have a lot spark result in this notebook,
Each cost much . So I hope this can be solved in case of similar situation . In addition, I would appreciate if matplotlib can bundle with CJK font (Or maybe an all-in-one font) . I need install the font in every notebook machine ... Why not just a pip install ? This is the source of many many font problems, i guess there are many CJK font related issue were/would be opened at here) , simply bundle an all-in-one font can finish them. Reduce user's works and contributor's works , isn't it a happy thing ? |
@eromoe Could you look into why the we do not support hot-reloading of the font cache? I agree with @anntzer that this is an edge case (and while I understand how it is frustrating for you, the simplest "fix"is to make sure you have a CJK font on your machines before you start the notebook), but it is an edge case that matters to you and we would be happy to review a PR to implement it. I am not aware of a single font that has all of the glyphs for all unicode points. If there were such a font, I would expect it to be prohibitively large. While I do see why pip-installing fonts would be convenient, it is a bit out of scope for pip. Matplotlib will find fonts in various user-controlled spaces ( matplotlib/lib/matplotlib/font_manager.py Lines 104 to 131 in 12f2624
|
Bug report
Bug summary
sudo apt-get install fonts-wqy-microhei
But it can read new font in new notebook
Matplotlib version
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inlineThe text was updated successfully, but these errors were encountered: