Commit a2d08ba4 authored by Thomas Vincent's avatar Thomas Vincent

Add postBuild

parent 714cd1e1
#!/bin/bash
# Setup jupyter bash kernel
python -m bash_kernel.install
# Download PyNX to have the notebooks
BASE_URL="http://ftp.esrf.fr/pub/scisoft/PyNX"
ARCHIVE_FILE="pynx-latest.tar.bz2"
wget "${BASE_URL}/${ARCHIVE_FILE}"
tar jxvf "${ARCHIVE_FILE}"
# Generates index notebook
head --lines=17 index_template.ipynb > index.ipynb
echo "Notebooks:"
for IPYNB in `find pynx/ -name "*.ipynb"`; do
echo "- ${IPYNB}";
echo " \" - [${IPYNB}](${IPYNB})\n\"," >> index.ipynb;
done
tail --lines=+17 index_template.ipynb >> index.ipynb
\ No newline at end of file
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