Configurations in `pyproject.toml` seem to be ignored
See original GitHub issueJupytext version: 1.13.1
Python version: 3.7.5
I have a project structure similar to the following:
project/
|-pyproject.toml
|-module/
|-submodule_1/
|-submodule_2/
|-tests/
|-test_notebook.ipynb
I added the following to my pyproject.toml
file:
[tool.jupytext]
formats = "ipynb,py:light"
I am running jupyter from the project
directory where the pyproject.toml
file is also located. However, it seems that the configurations are ignored. When I save test_notebook.ipynb
no .py
file is generated or if there already is one, it doesn’t get updated.
If instead of modifying the pyproject.toml
file, I create a jupytext.toml
file at the same location and with the content
formats = "ipynb,py:light"
everything works as expected, test_notebook.ipynb
is paired properly.
Am I doing something wrong when trying to configure jupytext
through the pyproject.toml
file? Or have I perhaps stumbled on a bug here?
And last but not least, thank you for the fantastic library.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Sorry for letting this issue sit stale for such a long time. I will try to get back to it in the coming days and give your latest suggestions a go.
OK, I think I have a similar issue which is that the pyproject.toml is actually picked up in the --notebook-dir that is set for jupyter when you start it. So for instance for instance, my data is in ./data and the pyproject.toml needs to be there as well otherwise it doesn’t know how to sync (in my case) md and ipynb files.
This was puzzling to me for a long because sometimes I start jupyter lab at the home directory . and sometimes I set the --notebook-dir to ./data and the sync and reading of pyproject.toml happens in the former but not the later case.