jupytext icon indicating copy to clipboard operation
jupytext copied to clipboard

"pip install --user jupytext" should install the contents manager and the extensions

Open mje-nz opened this issue 4 years ago • 1 comments

This is pretty close to #176, but "pip install --user jupytext" should install the contents manager and the extensions as well. In my testing (in a python:3.8 Docker container) it puts the config files into ~/.local/etc/jupyter/..., which isn't one of the jupyter config paths.

mje-nz avatar Jun 22 '20 08:06 mje-nz

Hello @mje-nz , well I think I have the same experience as you, i.e. pip install --user jupytext does not activate all the extensions, and one needs to run

# Install the server extension (or, alternatively, configure Jupyter to use Jupytext's contents manager)
jupyter serverextension enable jupytext --user

# Install and activate the notebook extension (= the Jupytext Menu in Jupyter Notebook)
jupyter nbextension install --py jupytext --user
jupyter nbextension enable --py jupytext --user

# Install the extension for Jupyter Lab (= the Jupytext commands in Jupyter Lab)
jupyter labextension install jupyterlab-jupytext

Now you're pointing out that, in --user mode, the config files do not end at the right place. This is done here: https://github.com/mwouts/jupytext/blob/b7cb6079b699588d4ca240f21b52262457289b4c/setup.py#L27-L53

Do you have any clue on what we could change so that the default config is active for both user and non-user installations? When I look at plotly's setup.py I find values similar to ours. Maybe you are aware of another program that would have solved this?

mwouts avatar Jun 22 '20 12:06 mwouts