dunovank / jupyter-themes

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

Can't Apply Theme for Docker Powered Notebook #423

Open cansurmeli opened 3 years ago

cansurmeli commented 3 years ago

Hey.

I've just added jupyterthemes to the Docker image I'm using. Although it seems I'm unable to change the theme after all.

Upon using a Terminal within the Notebook or directly bringing up a shell prompt via Docker, I can list the themes installed, though, upon changing them with jt -t [THEME] nothing is happening and there are no errors thrown.

Thanks.

geodose commented 3 years ago

Running into the same issue. Are you on the ml-workspace image as well?

Installs fine, jt command runs without issue, but no effect.

cansurmeli commented 3 years ago

Speaking on behalf of my Docker container, I don't know what exaclty changed but it works now.

It sounds pretty simple but have you tried refreshing the page? Sometimes the browser doesn't automatically recognise the changes.

LvanLuijk commented 1 year ago

If you stil have the issue, this is what fixed it for me:

  1. In docker terminal, make sure you are using bash; so that the prompt starts with "(base)"
  2. conda install -c conda-forge jupyterthemes (or pip if you're not using anaconda)
  3. conda update jupyterthemes (it found some updates of other packages, apparently necessary)
  4. jt -t monokai -f fira -fs 10 -nf ptsans -nfs 11 -N -kl -cursw 2 -cursc r -cellw 95% -T (Or another setting; this was copied from Ashraf Khan on Kaggle).
  5. Hard refresh page (chrome on windows: ctrl-F5

I think step 3 was key here, but not sure. However it works now.