Skip to content
Discussion options

You must be logged in to vote

Hi, the problem is that the browser cannot access local font files from ~/Library/Fonts/ directly. Browser can access fonts installed at the system level or Web fonts loaded via CSS.

In a Jupyter notebook, you can load Google Web Fonts like this:

from IPython.display import HTML

HTML("""
<style>
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');
</style>
""")

After running this cell, the fonts should be available for use in your plots with family="VT323" or family="Share Tech Mono".

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chrisHassan
Comment options

Answer selected by chrisHassan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants