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

Move jupytext config to Dockerfile

parent 1a0196e9
...@@ -24,6 +24,11 @@ RUN conda env update -q -f /tmp/environment.yml && \ ...@@ -24,6 +24,11 @@ RUN conda env update -q -f /tmp/environment.yml && \
conda clean -y --all && \ conda clean -y --all && \
conda env export -n "root" 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 # RENKU_VERSION determines the version of the renku CLI
# that will be used in this image. To find the latest version, # that will be used in this image. To find the latest version,
# visit https://pypi.org/project/renku/#history. # visit https://pypi.org/project/renku/#history.
...@@ -47,4 +52,4 @@ RUN if [ -n "$RENKU_VERSION" ] ; then \ ...@@ -47,4 +52,4 @@ RUN if [ -n "$RENKU_VERSION" ] ; then \
fi \ fi \
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 @@ ...@@ -4,10 +4,6 @@
git submodule foreach git pull origin main git submodule foreach git pull origin main
rm -r demo && cp -r jupytext/demo demo 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 # Create the notebook for our jupytext demo
jupytext demo/get_started.md --to ipynb --update-metadata '{"jupytext":null}' jupytext demo/get_started.md --to ipynb --update-metadata '{"jupytext":null}'
......
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