dunovank / jupyter-themes

Custom Jupyter Notebook Themes
MIT License
9.74k stars 1.06k forks source link

Can not execute the command to set a theme. #444

Open Abhranta opened 3 years ago

Abhranta commented 3 years ago

I am using ubuntu18.04 . When I try to execute the command- jt -t I get the following errors :

Traceback (most recent call last): File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/stylefx.py", line 459, in reset_default delete_font_files() File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/stylefx.py", line 104, in delete_font_files for fontfile in os.listdir(jupyter_custom_fonts): FileNotFoundError: [Errno 2] No such file or directory: '/home/abhrant/.jupyter/custom/fonts'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/abhrant/python/deep_learning/bin/jt", line 8, in sys.exit(main()) File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/init.py", line 314, in main dfonts=args.defaultfonts) File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/init.py", line 59, in install_theme stylefx.reset_default(False) File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/stylefx.py", line 461, in reset_default check_directories() File "/home/abhrant/python/deep_learning/lib/python3.6/site-packages/jupyterthemes/stylefx.py", line 60, in check_directories os.makedirs(jupyter_custom) File "/usr/lib/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/home/abhrant/.jupyter/custom'