How to change default colour scheme for ipython notebook?

pbreach

Is there an easy way to change this? I've just upgraded from ipython notebook v0.12 to 1.1 and it doesn't seem too bad so far but these colours are killing me. I've been working for an hour now and because it's so bright my eyes are starting to hurt. Any advice would be great (other than turning down the brightness of my computer screen...)

LeoRochael

Notice

The answer below pertains to the old IPython notebook. For the new Jupyter Notebook, please see this other answer.

Historical answer

As User mentioned in his answer, you need to modify the CSS of the notebook.

Fortunately others have already done the hard work for you, so if you search for "IPython themes" you'll find pages like Nikhil Sonnad's, with pre-packaged CSS themes for IPython notebooks.

Please read the page above in detail before using the themes, specially the detail that his themes do away with the toolbar (and how to get it back), but I'll paraphrase his instructions here, assuming that you want your IPython (version 3) notebook to use the ocean-dark theme, that you're running bash as your shell and that you have wget installed:

ipython profile create ocean-dark
wget -O `ipython locate profile ocean-dark`/static/custom/custom.css \
      https://github.com/nsonnad/base16-ipython-notebook/raw/master/ipython-3/output/base16-ocean-dark.css

Now, to run your IPython notebook with the ocean-dark theme, do

ipython notebook --profile=ocean-dark

Notice that there is no need to match the name of the theme with the name of the profile like in my example. You could do that in your own pre-existing profiles, or even in the default profile, by leaving out the profile name in the ipython locate command above.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to change the default browser used by the ipython/jupyter notebook in Linux?

From Dev

How to change font in ipython notebook

From Dev

How do I change the colour scheme on PuTTY?

From Dev

ipython notebook background colour of a cell

From Dev

ipython notebook: how to toggle header invisible by default

From Dev

How should I change the default highlight colour to the colour I want?

From Dev

How to change alignment of displayed equations in IPython Notebook?

From Dev

How to change IPython Notebook home directory?

From Dev

Default notebook directory in iPython Notebook - iPython 3.0.0

From Dev

Plotly: How to change the colour scheme of a 3D surface plot?

From Dev

How would I change the gedit theme/colour scheme? (20.04 LTS)

From Java

How to set the matplotlib figure default size in ipython notebook?

From Dev

How to display line numbers in IPython Notebook code cell by default

From Dev

How to make new cells in ipython notebook markdown by default?

From Dev

iPython Notebook svg Figures by Default

From Dev

Vim: Default Colour Scheme Permission Issues

From Java

How to change color in markdown cells ipython/jupyter notebook?

From Dev

How do I change the autoindent to 2 space in IPython notebook

From Dev

How do I change the autoindent to 2 space in IPython notebook

From Dev

How do I change the MATE default green colour globally?

From Dev

change colour scheme of specific elements in javascript?

From Dev

How to develop with ipython notebook

From Dev

How to autosave ipython notebook

From Dev

How to cache in IPython Notebook?

From Dev

How to include iPython notebook

From Dev

Change default colour for size legend

From Dev

How do I change the colour of 1 specific bar in a bar chart using Python- IDE Jupiter Notebook

From Dev

Default template for iPython notebook (using Jupyter)

From Dev

Ipython Notebook: Default Initialization Python Code

Related Related

  1. 1

    How to change the default browser used by the ipython/jupyter notebook in Linux?

  2. 2

    How to change font in ipython notebook

  3. 3

    How do I change the colour scheme on PuTTY?

  4. 4

    ipython notebook background colour of a cell

  5. 5

    ipython notebook: how to toggle header invisible by default

  6. 6

    How should I change the default highlight colour to the colour I want?

  7. 7

    How to change alignment of displayed equations in IPython Notebook?

  8. 8

    How to change IPython Notebook home directory?

  9. 9

    Default notebook directory in iPython Notebook - iPython 3.0.0

  10. 10

    Plotly: How to change the colour scheme of a 3D surface plot?

  11. 11

    How would I change the gedit theme/colour scheme? (20.04 LTS)

  12. 12

    How to set the matplotlib figure default size in ipython notebook?

  13. 13

    How to display line numbers in IPython Notebook code cell by default

  14. 14

    How to make new cells in ipython notebook markdown by default?

  15. 15

    iPython Notebook svg Figures by Default

  16. 16

    Vim: Default Colour Scheme Permission Issues

  17. 17

    How to change color in markdown cells ipython/jupyter notebook?

  18. 18

    How do I change the autoindent to 2 space in IPython notebook

  19. 19

    How do I change the autoindent to 2 space in IPython notebook

  20. 20

    How do I change the MATE default green colour globally?

  21. 21

    change colour scheme of specific elements in javascript?

  22. 22

    How to develop with ipython notebook

  23. 23

    How to autosave ipython notebook

  24. 24

    How to cache in IPython Notebook?

  25. 25

    How to include iPython notebook

  26. 26

    Change default colour for size legend

  27. 27

    How do I change the colour of 1 specific bar in a bar chart using Python- IDE Jupiter Notebook

  28. 28

    Default template for iPython notebook (using Jupyter)

  29. 29

    Ipython Notebook: Default Initialization Python Code

HotTag

Archive