From charlesreid1

Line 34: Line 34:
wget -O `ipython locate profile bespin`/static/custom/custom.css \
wget -O `ipython locate profile bespin`/static/custom/custom.css \
https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/ipython-3/output/base16-bespin-dark.css
https://raw.githubusercontent.com/nsonnad/base16-ipython-notebook/master/ipython-3/output/base16-bespin-dark.css
</pre>
===Bringing the toolbar back===
The themes get rid of the toolbar; to bring it back:
<pre>
vim `ipython locate profile bespin`/static/custom/custom.css
</pre>
and comment out the line:
<pre>
div#maintoolbar, div#header {display: none !important;}
</pre>
</pre>

Revision as of 10:07, 2 December 2017

Applying Base16 themes to ipython notebook via https://github.com/nsonnad/base16-ipython-notebook

Before

JupyterBase16 Before.png

Installing

Clone repo here: https://github.com/nsonnad/base16-ipython-notebook

List of themes here: https://github.com/nsonnad/base16-ipython-notebook/tree/master/ipython-3/output

Start by creating a custom profile in ipython:

ipython profile create bespin

Now locate the directory containing files for that custom profile:

ipython locate profile bespin

Or skip straight to it:

mkdir -p `ipython locate profile bespin`/static/custom/

once per profile, then:

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

Bringing the toolbar back

The themes get rid of the toolbar; to bring it back:

vim `ipython locate profile bespin`/static/custom/custom.css

and comment out the line:

div#maintoolbar, div#header {display: none !important;}