Jupyter/Base16: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 10: | Line 10: | ||
<pre> | <pre> | ||
git clone | git clone https://github.com/charlesreid1/base16-jupyter | ||
</pre> | </pre> | ||
Create a Jupyter config directory in the default location and start a notebook server: | |||
<pre> | <pre> | ||
jupyter notebook --generate-config | |||
jupyter notebook | |||
</pre> | </pre> | ||
Create a Jupyter config directory in a custom location and start a notebook server with that configuration: | |||
<pre> | <pre> | ||
JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook --generate-config | |||
JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook | |||
</pre> | </pre> | ||
Custom CSS should go in <code>custom/custom.css</code>: | |||
<pre> | <pre> | ||
mkdir $JUPYTER_CONFIG_DIR/custom | |||
</pre> | </pre> | ||
Then copy any of the CSS files into this directory: | |||
<pre> | <pre> | ||
cd base16-jupyter/ | |||
cp colors/base16-bespin-dark.css $JUPYTER_CONFIG_DIR/custom/. | |||
</pre> | </pre> | ||
It should look like this | It should look like this: | ||
[[Image:JupyterBase16_after.png|500px]] | [[Image:JupyterBase16_after.png|500px]] | ||
Revision as of 11:37, 2 December 2017
Applying Base16 themes to ipython notebook via https://github.com/nsonnad/base16-ipython-notebook
Before
Installing Base16 Jupyter
Clone repo, and also clone submodules:
git clone https://github.com/charlesreid1/base16-jupyter
Create a Jupyter config directory in the default location and start a notebook server:
jupyter notebook --generate-config jupyter notebook
Create a Jupyter config directory in a custom location and start a notebook server with that configuration:
JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook --generate-config JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook
Custom CSS should go in custom/custom.css:
mkdir $JUPYTER_CONFIG_DIR/custom
Then copy any of the CSS files into this directory:
cd base16-jupyter/ cp colors/base16-bespin-dark.css $JUPYTER_CONFIG_DIR/custom/.
It should look like this: