Skip to content
Commits on Source (2)
......@@ -24,6 +24,11 @@ RUN conda env update -q -f /tmp/environment.yml && \
conda clean -y --all && \
conda env export -n "root"
# Add jupytext configuration
# Copy jupytext's jupyter config to open md and script files as notebooks by default.
RUN mkdir -p ${HOME}/.jupyter/labconfig
COPY labconfig/*json ${HOME}/.jupyter/labconfig
# RENKU_VERSION determines the version of the renku CLI
# that will be used in this image. To find the latest version,
# visit https://pypi.org/project/renku/#history.
......@@ -47,4 +52,4 @@ RUN if [ -n "$RENKU_VERSION" ] ; then \
fi \
fi
########################################################
\ No newline at end of file
########################################################
{
"@jupyterlab/docmanager-extension:plugin": {
"defaultViewers": {
"markdown": "Jupytext Notebook",
"myst": "Jupytext Notebook",
"r-markdown": "Jupytext Notebook",
"quarto": "Jupytext Notebook",
"julia": "Jupytext Notebook",
"python": "Jupytext Notebook",
"r": "Jupytext Notebook"
}
}
}
......@@ -4,10 +4,6 @@
git submodule foreach git pull origin main
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/get_started.md --to ipynb --update-metadata '{"jupytext":null}'
......