Commit a9d2662f authored by Cyril Matthey-Doret's avatar Cyril Matthey-Doret
Browse files

add jupytext config in post-init hook

parent 32937e88
Pipeline #313798 passed with stage
in 12 seconds
#!/usr/bin/env bash
# Update notebooks in the demo directory from upstream repo
git submodule foreach git pull
rm -r demo && cp -r jupytext/demo demo
# Copy jupytext's jupyter config to open md and script files as notebooks by default.
mkdir -p ${HOME}/.jupyter/labconfig
cp jupytext/binder/labconfig/* ${HOME}/.jupyter/labconfig
# Create the notebook for our jupytext demo
jupytext demo/ --to ipynb --update-metadata '{"jupytext":null}'
# Remove the markdown representation
# (the demo starts with just the ipynb file)
rm demo/
# Trust our World Population notebook
jupyter trust demo/World\ population.ipynb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment