I am on OS X 10.11.4 with Python 3.5.
Installed the theme according to the instructions. Tried it, didn't like it. Wanted to reset according to the instructions. Didn't work. Removed .ipython and .jupyter folders from home directory. Theme (grade3) still persists. Any ideas? Thanks!
Hi, very sorry about the issue. I'm working on a fix now.
The reset flag is working for me. I'm running same version of OSX but Python 2 instead of 3. Do you get any output after running "jupyter-theme -r" (it should report the directories where the themed css file gets renamed).
Also, have you tried refreshing your browser cache? In the past I've had issues with Firefox and occasionally with Chrome where changes to the css file don't get automatically registered. I installed an add-on that allows me to reset the css on the current page with a hot-key. Here's the extension for chrome in case you're interested: CSS Reload
If that doesn't work I'll keep looking into potential version-related issues.
Hi, thanks for the quick response!
When I first ran jupyter-theme, this is what I got:
Toolbar is disabled. Set -T to enable
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter-theme", line 9, in <module>
load_entry_point('jupyter-themes==0.1', 'console_scripts', 'jupyter-theme')()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/jupyterthemes/__init__.py", line 157, in main
install_theme(args.theme, profile=args.profile, toolbar=args.toolbar, fontsize=str(args.fontsize), font=str(args.font), update_properties=update)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/jupyterthemes/__init__.py", line 78, in install_theme
shutil.copy(source_path, themecss_path)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/shutil.py", line 235, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/william/.ipython/profile_default/static/custom/theme.css'
So I suppose it was trying to copy the current theme (to be able to restore it later??), but didn't find any. Anyway, I simply created the empty theme.css file in /Users/william/.ipython/profile_default/static/custom/theme.css
After that all went well:
Toolbar is disabled. Set -T to enable
Installing space-legos at /Users/william/.ipython/profile_default/static/custom
Installing space-legos at /Users/william/.jupyter/custom
Now after trying to reset:
Toolbar is disabled. Set -T to enable
Reset default theme here: /Users/william/.ipython/profile_default/static/custom
Reset default theme here: /Users/william/.jupyter/custom
Got it, thanks for letting me know. I've included a warning in the README about this issue. Will look into it asap and post here when I have a solution. Sorry about the trouble!
I'm having the same problem. I installed and am able to switch between grade3.css, oceans16.css, and space-legos.css but when I try to reset to default, it doesn't work. I have those .css files in
~/.jupyter-themes/ and when I try jupyter-theme -r I get:
Reset default theme here: /Users/jkakos/.jupyter/custom
It created a file custom_old.css in /Users/jkakos/.jupyter/custom. When I shutdown the notebook and reopen it, nothing changes. I also tried copying custom_old.css to ~/.jupyter-themes/ and installing it like the others but that didn't change anything either.
Should be fixed now. Just runjupyter-theme -r then refresh your browser's css cache (see above for convenient chrome add-on)
Yeah, still not working for me: I enabled a theme, saw that it played badly with the vim plugin, and tried to reset β¦ and now I can't even find the files to manually reset it. I've removed ~/.jupyter/custom entirely β¦ what else can I try?
> jupyter-theme -r
Already set to default theme in /Users/ec/.jupyter/custom
Already set to default theme in /Users/ec/Library/Jupyter/nbextensions
(That output makes no sense: there should be no βthemeβ in the nbextensions folder; and I'm on OS X, so ~/.jupyter isn't the actual jupyter --data-dir.)
What can I remove by hand to fix this? /=
Hey sorry, guess I closed this prematurely. Really strange that the reset isn't working for you given that you're also on OS X (working for me on osx and Ubuntu).
What version of Python? Version of Jupyter?
Also, I assume you refreshed your browser/css cache after resetting?
Can others verify that the reset is still broken on their machines?
I can verify that mine is working properly as of 4 days ago with your previous fix.
Thanks for following up @jpkakos
@ELLIOTTCABLE?
Also, in case people are interested, the nbextensions directory appears to store a cached css file whenever a new one is detected in ~/.jupyter/custom/ which is why simply deleting the custom css file from ~/.jupyter/custom/ doesn't reset the theme. It must also be deleted from the nbextensions dir. So the output from @ELLIOTTCABLE's post is correct.
Okay... gonna go ahead and close this then.
Sorry, I don't have regular access to the machine that's now screwed up; I'll try and take a look next time I have a few moments. Didn't realize this would be a controversial report! >,<
Haha no apology necessary (except maybe one from me). You happened to catch me in a particularly disgruntled state while working on my dissertation, so please accept my apologies for responding like an ass. Anyway, I do hope it's sorted on your machine and if not please feel free to post again on this issue.
it didn't work for me up to now. I can't reset the theme even after trying all the methods mentioned
does anyone have the original css theme ?
@aqeel13932 Did you tree clearing your cache in the browser? It helped me..
Hi @aqeel13932 , sorry for the delay in response. Have you installed the latest version? If you're unsure you can just run the following lines to make sure you're using the current version.
Make sure there aren't any lingering prior installs
pip uninstall jupyter-themes
pip uninstall jupyterthemes
Reinstall
pip install jupyterthemes
Then run jt -r and refresh your browser window.
As @Alchemication mentioned, if don't see the default theme after refreshing the window, try clearing your browser cache, closing your browser, then restarting jupyter notebook. If that doesn't work, post your browser, OS, etc. here and I'll look into a fix.
@dunovank @Alchemication Thanks for your help, but I reformat my laptop, it was heavy and I needed to shift from Ubuntu to fedora anyway :). Thanks again :).
Cool, no worries :)
Mine is doing this but only for a single directory?
``
jespinozlt-osx:~ jespinoz$ pip install jupyterthemes
Collecting jupyterthemes
Downloading jupyterthemes-0.10.4-py2.py3-none-any.whl (40kB)
100% |ββββββββββββββββββββββββββββββββ| 40kB 678kB/s
Requirement already satisfied (use --upgrade to upgrade): lesscpy>=0.11.1 in ./anaconda/lib/python3.5/site-packages (from jupyterthemes)
Requirement already satisfied (use --upgrade to upgrade): jupyter in ./anaconda/lib/python3.5/site-packages (from jupyterthemes)
Requirement already satisfied (use --upgrade to upgrade): six in ./anaconda/lib/python3.5/site-packages (from lesscpy>=0.11.1->jupyterthemes)
Requirement already satisfied (use --upgrade to upgrade): ply in ./anaconda/lib/python3.5/site-packages (from lesscpy>=0.11.1->jupyterthemes)
Installing collected packages: jupyterthemes
Successfully installed jupyterthemes-0.10.4
jespinozlt-osx:~ jespinoz$ jt -r
Already set to default theme in /Users/jespinoz/.jupyter/custom
Already set to default theme in /Users/jespinoz/Library/Jupyter/nbextensions
jespinozlt-osx:~ jespinoz$ jupyter notebook
[W 12:59:25.947 NotebookApp] server_extensions is deprecated, use nbserver_extensions
[I 12:59:26.327 NotebookApp] The port 8888 is already in use, trying another port.
[I 12:59:26.359 NotebookApp] Loaded extension jupyter_nbextensions_configurator
[I 12:59:26.365 NotebookApp] Serving notebooks from local directory: /Users/jespinoz
[I 12:59:26.366 NotebookApp] 0 active kernels
[I 12:59:26.366 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 12:59:26.366 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

Not sure what you mean by doing this for a single directory... Is it that you jt -r isn't working at all and you're still seeing a previously installed theme? Have you tried refreshing your browser cache? Closing and opening a new notebook session?
That was it. It was strange b/c I would open up Jupyter from a different directory and then it would be default again. Thanks for the fix.
No prob
When you run jt -r make sure you clear your browser cache, or it won't work.
Please add the CSS / browser cache reset step to your readme / help docs.
Hi i tried a simple fix, just delete all lines from your custom.css file, save it blank and it will overwrite the changes to default, this worked for me.
@harmanparihar God blessed, I changed back to the default, I install a new theme and it's terrible.
Thank you so much!!!!
I copied the __init__.py to RID.py
Then entered in a notebook cell :
from jupyterthemes import RID
RID.main() -r
RID.main() -reset
It all went away and back to normal
Talk about a hack that worked ha ha ha
Hm.. sorry to hear this is still broken. Can you provide some info about
your OS, version of python, conda, jupyter, and notebook?
On Tue, Feb 6, 2018 at 2:53 AM Ricky Nilsson notifications@github.com
wrote:
Gosh, this is still not working for me.
I make sure all notebook session are closed. I run:
jt -r
I check that custom.css is empty and there is nothing in
/Users/ricky/Library/Jupyter/nbextensions
Then I delete browser cache, start up a notebook ... and still the old
chesterish theme is there.β
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/dunovank/jupyter-themes/issues/22#issuecomment-363339403,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADqqzgevCom59pnSgwmCELMvY8szDyGzks5tSATlgaJpZM4ID7Os
.>
Sent from my iPhone
Oh, I removed the comment just a minute after I posted it. I realized I was
being stupid. It was a combination of having Jupiter themes AND a dark
theme from the chrome Stylish plugin activated at the same time. I had
totally forgotten about the latter. Sorry, my bad. All is fine now.
Cheers!
On Tue, Feb 6, 2018 at 08:12 Kyle Dunovan notifications@github.com wrote:
Hm.. sorry to hear this is still broken. Can you provide some info about
your OS, version of python, conda, jupyter, and notebook?On Tue, Feb 6, 2018 at 2:53 AM Ricky Nilsson notifications@github.com
wrote:Gosh, this is still not working for me.
I make sure all notebook session are closed. I run:
jt -r
I check that custom.css is empty and there is nothing in
/Users/ricky/Library/Jupyter/nbextensions
Then I delete browser cache, start up a notebook ... and still the old
chesterish theme is there.β
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<
https://github.com/dunovank/jupyter-themes/issues/22#issuecomment-363339403
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/ADqqzgevCom59pnSgwmCELMvY8szDyGzks5tSATlgaJpZM4ID7Os.
>
Sent from my iPhone
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dunovank/jupyter-themes/issues/22#issuecomment-363473376,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMIX9UcEOH0b6KLudibaQc0y4T1OImbRks5tSHnqgaJpZM4ID7Os
.
Ricky,
Normally the configuration directory is hidden. You wrote:
/Users/ricky/Library/Jupyter/nbextensions
Do you need a dot before nbextensions?
/Users/ricky/Library/Jupyter/.nbextensions
Willis
On Mon, Feb 5, 2018 at 11:53 PM, Ricky Nilsson notifications@github.com
wrote:
Gosh, this is still not working for me.
I make sure all notebook session are closed. I run:
jt -r
I check that custom.css is empty and there is nothing in
/Users/ricky/Library/Jupyter/nbextensions
Then I delete browser cache, start up a notebook ... and still the old
chesterish theme is there.β
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dunovank/jupyter-themes/issues/22#issuecomment-363339403,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARP_nQy_HzMG5reLBOczoHF9yHqi2JLJks5tSATmgaJpZM4ID7Os
.
--
Willis
Most helpful comment
When you run jt -r make sure you clear your browser cache, or it won't work.