jupyter-themes icon indicating copy to clipboard operation
jupyter-themes copied to clipboard

Can't Apply Theme for Docker Powered Notebook

Open cansurmeli opened this issue 3 years ago • 3 comments

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.

cansurmeli avatar Dec 10 '20 19:12 cansurmeli

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

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

geodose avatar Apr 12 '21 00:04 geodose

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.

cansurmeli avatar Apr 12 '21 09:04 cansurmeli

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.

LvanLuijk avatar Feb 16 '23 08:02 LvanLuijk