1 | initial version |
So here is what I found after doing some research. It is not a perfect solution, but it works.
Figures appear to have low resolution in Jupyter because I am zooming into the notebook's page in my browser. At 100% zoom level, figures appear clear in the notebook, though I have the zoom level set to 150%, and the figures are scaled up in size without a change in resolution, so they become blurry. The problem is that at 100% zoom, the font size in the notebook becomes so small that it is unreadable (I think this is a problem for any laptop with 1080p screen resolution or higher).
The solution I found is to keep zoom level at 100% and to change the font size using Jupyter theme settings. Install Jupyter themes, then switch to a custom theme with large font size by running the following command in the terminal:
jt -t monokai -f roboto -fs 16 -ofs 16 -cellw 95% -N
Here is what each term means:
-t monokai
sets the theme to monokai
-f roboto
sets the font type to roboto
-fs 16
sets the input cell font size to 16-ofs 16
sets the output cell font size to 16-cellw 95%
sets the cell width to 95% of the page's width-N
sets the notebook's name to visible. You can omit this flag if you don't want to the Notebook's title at the top of the page.Now the font size looks great, and the figures are clear, except that they are small. We can increase the size of the figures and their font size using the figsize
and fontsize
optional arguments of the plot
command. For example:
plot(sin(x), (x,0,2*pi), figsize=10, fontsize=16)
produces a large and clear figure with a readable font.
The only downside with this solution is that I have to include figsize=10, fontsize=16
in every plot
command I use.
2 | No.2 Revision |
So here is what I found after doing some research. It is not a perfect solution, but it works.gets the job done.
Figures appear to have low resolution in Jupyter because I am zooming into the notebook's page in my browser. At 100% zoom level, figures appear clear in the notebook, though I have the zoom level set to 150%, and the figures are scaled up in size without a change in resolution, so they become blurry. The problem is that at 100% zoom, the font size in the notebook becomes so small that it is unreadable (I think this is a problem for any laptop with 1080p screen resolution or higher).
The solution I found is to keep zoom level at 100% and to change the font size using Jupyter theme settings. Install Jupyter themes, then switch to a custom theme with large font size by running the following command in the terminal:
jt -t monokai -f roboto -fs 16 -ofs 16 -cellw 95% -N
Here is what each term means:
-t monokai
sets the theme to monokai
-f roboto
sets the font type to roboto
-fs 16
sets the input cell font size to 16-ofs 16
sets the output cell font size to 16-cellw 95%
sets the cell width to 95% of the page's width-N
sets the notebook's name to visible. You can omit this flag if you don't want to the Notebook's title at the top of the page.Now the font size looks great, and the figures are clear, except that they are small. We can increase the size of the figures and their font size using the figsize
and fontsize
optional arguments of the plot
command. For example:
plot(sin(x), (x,0,2*pi), figsize=10, fontsize=16)
produces a large and clear figure with a readable font.
The only downside with this solution is that I have to include figsize=10, fontsize=16
in every plot
command I use.
3 | No.3 Revision |
So here is what I found after doing some research. It is not a perfect solution, but it gets the job done.
Figures appear to have low resolution in Jupyter because I am zooming into the notebook's page in my browser. At 100% zoom level, figures appear clear in the notebook, though I have the zoom level set to 150%, and the figures are scaled up in size without a change in resolution, so they become blurry. The problem is that at 100% zoom, the font size in the notebook becomes so small that it is unreadable (I think this is a problem for any laptop with 1080p screen resolution or higher).
The solution I found is to keep zoom level at 100% and to change the font size using Jupyter theme settings. Install Jupyter themes, then switch to a custom theme with large font size by running the following command in the terminal:
jt -t monokai -f roboto -fs 16 -ofs 16 -cellw 95% -N
Here is what each term means:
-t monokai
sets the theme to monokai
-f roboto
sets the font type to roboto
-fs 16
sets the input cell font size to 16-ofs 16
sets the output cell font size to 16-cellw 95%
sets the cell width to 95% of the page's width-N
sets the notebook's name to visible. You can omit this flag if you don't want to the Notebook's title at the top of the page.Now the font size looks great, and the figures are clear, except that they are small. We can increase the size of the figures and their font size using the figsize
and fontsize
optional arguments of the plot
command. For example:
plot(sin(x), (x,0,2*pi), figsize=10, fontsize=16)
produces a large and clear figure with a readable font.
The only downside with to this solution is that I have to include figsize=10, fontsize=16
in every plot
command I use.