Jupyter-themes: Error: Unknown variables

Created on 27 Sep 2017  路  6Comments  路  Source: dunovank/jupyter-themes

When I want to switch to some themes
e.g. jt -t monokai or also solarizedl I get following error.

Traceback (most recent call last):
  File "/Users/michael/anaconda/envs/deeplearning/bin/jt", line 11, in <module>
    sys.exit(main())
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/jupyterthemes/__init__.py", line 305, in main
    dfonts=args.defaultfonts)
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/jupyterthemes/__init__.py", line 101, in install_theme
    style_css = stylefx.less_to_css(style_less)
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/jupyterthemes/stylefx.py", line 63, in less_to_css
    style_css = lesscpy.compile(tempfile)
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/lesscpy/__init__.py", line 18, in compile
    p.parse(file=file)
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/lesscpy/lessc/parser.py", line 157, in parse
    self.register.close()
  File "/Users/michael/anaconda/envs/DeepLearning/lib/python3.6/site-packages/lesscpy/lessc/parser.py", line 44, in __close__
    raise CompilationError("\n".join(self.errors))
lesscpy.exceptions.CompilationError: E: line: 0: Unknown variable @nb-header-fg

E: line: 0: Unknown variable @nb-header-fg

E: line: 0: Unknown variable @button-hover-border

E: line: 0: Unknown variable @button-hover-border

E: line: 0: Unknown variable @button-focus-fg

E: line: 0: Unknown variable @button-focus-fg

E: line: 0: Unknown variable @button-focus-bg

E: line: 0: Unknown variable @button-hover-bg

E: line: 0: Unknown variable @form-input-border

E: line: 0: Unknown variable @code-fg

E: line: 0: Unknown variable @code-fg

E: line: 0: Unknown variable @code-fg

E: line: 0: Unknown variable @md-header-link

E: line: 0: Unknown variable @button-hover-bg

Most helpful comment

thanks for the feedback y'all, this was a total mental lapse on my part, forgot to update some of the style sheets with new less variables. I'll try to resolve by the end of the week and will post an update here when I release a fixed version. Thanks again and sorry for the trouble!

All 6 comments

Running into this issue too on macOS Sierra, tried Python 2.7 and 3.6. My $PYTHONPATH is not empty.

Facing the same issue on 3.6 anaconda distribution.
"grade3", "oceans16" and "onedork" however applies fine. No luck with the rest of the themes.
Tried uninstalling and re-installing & --upgrade. Installation is smooth w/o errors.

thanks for the feedback y'all, this was a total mental lapse on my part, forgot to update some of the style sheets with new less variables. I'll try to resolve by the end of the week and will post an update here when I release a fixed version. Thanks again and sorry for the trouble!

Okay hopefully the issue is fixed. Would someone mind confirming by upgrading to v0.18.0?

pip install --upgrade jupyterthemes

Thanks @dunovank It now woks like a charm

wonderful, thanks! closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AFederici picture AFederici  路  7Comments

baibai25 picture baibai25  路  8Comments

diedummydie picture diedummydie  路  8Comments

shravankumar147 picture shravankumar147  路  3Comments

Brett99 picture Brett99  路  7Comments