jupyterhub / jupyterhub/nbgitpuller

Jupytext support/running a script after checkout

Open
#122 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
237
Forks
86
PR merge metrics
No merged PRs in 30d

Description

[jupytext](https://github.com/mwouts/jupytext) allows to track jupyter notebooks as e.g. plain python files and converts and synchronizes changes between the ``*.ipynb`` files and the ``*.py`` files. For this to work with ``nbgitpuller``, we would need to run e.g.

```sh
find -name '*.jupy.py'|xargs jupytext --set-formats py,ipynb
```

after each checkout.

Generally it would be enough to allow ``nbgitpuller`` to run an arbitrary shell script after each checkout (this could probably also be achieved with a git post checkout hook, but these would need to be installed after the initial cloning of the repository or with git template option).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.