Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Best Practices
jupytext
Commits
a9d2662f
Commit
a9d2662f
authored
Feb 02, 2022
by
Cyril Matthey-Doret
Browse files
add jupytext config in post-init hook
parent
32937e88
Pipeline
#313798
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
post-init.sh
View file @
a9d2662f
#!/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/get_started.md
--to
ipynb
--update-metadata
'{"jupytext":null}'
# Remove the markdown representation
# (the demo starts with just the ipynb file)
rm
demo/get_started.md
# Trust our World Population notebook
jupyter trust demo/World
\
population.ipynb
Cyril Matthey-Doret
@cyril.matthey-doret
mentioned in commit
6d910d13
·
Feb 02, 2022
mentioned in commit
6d910d13
mentioned in commit 6d910d13e71143d13413822cbb0d3e20d33aada0
Toggle commit list
Cyril Matthey-Doret
@cyril.matthey-doret
mentioned in commit
da7c60b8
·
Feb 02, 2022
mentioned in commit
da7c60b8
mentioned in commit da7c60b83321af88a9630f851b30458df4cef967
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment