Issue
I would like to use another theme for Ipython notebook so I following this instructions the problem is I'm in OSX and I dont have the wget, I installed it homebrew. Could somebody help me to set ipython notebooks in a dark theme?. I tried this:
brew /Users/user/.ipython/profile_notebooks/static/custom/custom.css
https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/base16-ocean-dark.css
Solution
You can do it with curl
or by manually downloading the theme. I have given steps for both the options below.
Create a custom profile using the following command:
ipython profile create ocean
Replace the content of the default stylesheet custom.css
with that of the required theme using the following command
Using curl:
curl -o `ipython locate profile ocean`/static/custom/custom.css https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/base16-ocean-dark.css
Start the IPython
notebook by specifying the custom profile e.g.
ipython notebook --profile=ocean
Alternative:
If you are not able to download using curl
, you can simply download the base16-ocean-dark.css
and replace the custom.css
in the custom directory of your created profile.
Locate the profile directory:
ipython locate profile ocean
Go to its static/custom
directory and replace the content of custom.css
with that of downloaded css
file.
Start the IPython
notebook by specifying the custom profile as shown above.
Answered By - Amit Verma
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.