-
Notifications
You must be signed in to change notification settings - Fork 392
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
Create new Jupytext .md File Option #265
Comments
Nice challenge!
Well that's a sensitive defaults I think... It should be possible to insert a new menu item to create a notebook with another extension, but the main complexity here is probably to get a meaningful UI in the end... Also, with your config the new notebook will become a paired document only if it matches the prefix, i.e. if you create it in the
That's on purpose. In the earlier versions, Jupytext added this header to text files, but I got consistent feedback suggesting not to modify the files. Anyway, if you do want the header, you should just remove the filter on the notebook metadata. Starting from version 1.1.7 there is now a Include Metadata entry in the Jupytext Menu exactly for this.
Not much! You lose
Note that in the case of paired notebook, you don't lose the kernel information because that metadata is stored in the |
Yep.. what I'm working towards is a set up where the user doesn't have to see the That is, I want a pure markdown document workflow, at least as far as files in the user's public directory listings go. |
Some more observations/questions about the dual / pairing only working from
|
Hi @psychemedia ,
Jupytext does not set any watcher. The way it works is through the contents manager. The CM receives the instruction to load or save a specific file, and then actually loads or saves two files. Regarding
That should pair every
I don't think so. The pairing format above only matches paths for which the parent folder is There are a few tests about that in |
Hi @mwouts , I think this is strange. I want to have two directory trees with the same structure, but one with the ipynb files, and another one with python files. Say "notebooks" and "scripts". Is it possible to acheive this now, or could you suggest a better way? I find it quite annoying that I have duplicates of each notebook (py + ipynb) in the jupyter interface. |
Hello @technic ,
This is a nice idea. Currently it is only possible with folders, not trees, cf. https://jupytext.readthedocs.io/en/latest/using-server.html#per-notebook-configuration. So, if I understand correctly, you have two folders at the root of your Jupyter server: |
Yes, that's what I want. |
Hi there, I'm going to close this one, as
as your
A RC of Jupytext 1.5.0 is already available ( |
I've just been experimenting with a simple set up to try to create a basic environment that just exposes Juptext markdown files in a top level folder, and stashes notebooks in a hidden folder:
It seems to work, BUT:
New
menu to create a new notebook, it creates a new.ipynb
file.I can create a new text file from the same menu, set it as an
.md
file, and it seems to work okay, opening as a notebook and saving as a dual, but it lacks the Jupytext header yaml or comment markers.So I wonder:
New
menu, as well as from the notebookFile > Jupytext
menu?Also, what do I lose out on by using a vanilla markdown file compared to a Jupytext markdown file?
FWIW, my demo repo is here. (The demo
.md
file was actually created from anipynb
file by Jupytext in an earlier demo. To test, run the repo via Binder and then create a new.md
text file in themarkdown
directory.The text was updated successfully, but these errors were encountered: