In this article, I will provide some methods to make the jupyter notebook the way you like.
The command that I use is:
The meaning of each parameter can be found in the link above. BTW, I like dejavu font.
The way to find your directory of notebook.json file is:
Then you will get the path for directory nbconfig folder, the notebook.json file is inside this folder.
open notebook.json file, then add the following code:
save, exit. Your jupyter notebook now have line-wrapping capability!
The tool that I found is jupyter-navbar.
Install this is very easy:
Then you get a navigation bar in your jupyter notebook.
In the future, if I learn more things about modifying jupyter, I will document them in here.
Good day, bye-bye!
See you in the next article!
Change the Theme:
The tool for changing the theme of a jupyter notebook is: jupyter-themesThe command that I use is:
jt -t onedork -f dejavu -fs 14 -nfs 14 -tf dejavu -tfs 14 -dfs 14 -ofs 14 -cellw 88% -T
The meaning of each parameter can be found in the link above. BTW, I like dejavu font.
Wrap the line:
Usually when we write a very long statement, we want it to be wrapped in a certain length limit. We can modify the notebook.json file.The way to find your directory of notebook.json file is:
jupyter --config-dir
Then you will get the path for directory nbconfig folder, the notebook.json file is inside this folder.
open notebook.json file, then add the following code:
"MarkdownCell": {
"cm_config": {
"lineWrapping": true
}
},
"CodeCell": {
"cm_config": {
"lineWrapping": true
}
}
save, exit. Your jupyter notebook now have line-wrapping capability!
Add the navigation bar:
Sometimes our jupyter notebook can become very long and messy, so it is very important to have a navigation bar since jupyter doesn't provide this tool, we need to search for it.The tool that I found is jupyter-navbar.
Install this is very easy:
python setup.py
Then you get a navigation bar in your jupyter notebook.
In the future, if I learn more things about modifying jupyter, I will document them in here.
Good day, bye-bye!
See you in the next article!
Comments
Post a Comment