Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--paired-paths on command line doesn't report pairing configured in jupytext.toml #928

Open
Aetf opened this issue Mar 8, 2022 · 1 comment

Comments

@Aetf
Copy link

Aetf commented Mar 8, 2022

Basically as shown in the following:

❯ ls --tree
./
├── __notebooks__/
│  └── demo.ipynb
└── jupytext.toml
❯ cat jupytext.toml
formats = [
    "__notebooks__///ipynb",
    ".///py:percent"
]
❯ jupytext --paired-paths __notebooks__/demo.ipynb
❯ jupytext --sync __notebooks__/demo.ipynb
[jupytext] Reading __notebooks__/demo.ipynb in format ipynb
[jupytext] Updating ./demo.py
❯ jupytext --paired-paths __notebooks__/demo.ipynb
❯

I want a way to automatically generate paired py/md when opening a new notebook, similar to jupytext.vim.
But instead of generating a new text file as you mentioned in
#146 (comment), I hope the details could be controlled in
jupytext.toml. But for that, I need a way to tell where the paired text file is located.

@indigoviolet
Copy link

I'd like to report this issue as well:

# clearly these are paired
❯ jupytext --sync explore_osm_data.ipynb               
[jupytext] Reading explore_osm_data.ipynb in format ipynb
[jupytext] Loading explore_osm_data.py
[jupytext] Updating the timestamp of explore_osm_data.py

# and yet jupytext wont say so
❯ jupytext -p explore_osm_data.ipynb    

❯ cat ~/.config/jupytext.toml
formats = ["ipynb", "py:percent"]
notebook_metadata_filter = "all,-kernelspec,-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
cell_metadata_filter = "-all"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants