-
Notifications
You must be signed in to change notification settings - Fork 393
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
errors related to default format when paired to 'auto' #249
Comments
another thing related to 'auto' (not sure if it should be in a separate issue): using
as I mentioned in the previous post, I can open an already present notebook and when I save it, it is saved to the file type corresponding to the used kernel. now, if I used a kernel not supported by jupytext (e.g. ijavascript or itypescript), I am no longer able to save the changes in the notebook (not even to the .ipynb file) this prevents me from using other kernels with this setting my questions:
thank you |
Thanks @hatemhosny for reporting this - I really appreciate the effort you put in documenting the issues ! We shall be able to fix these points soon.
|
Thank you 👍 I will work on a PR for both js and ts Thanks for the guidance |
- Allow saving empty notebooks - Make sure script is the source when notebook is reloaded Fixes #249
- only in the introduction - links to CONTRIBUTING.md and to languages.py #249
- only in the introduction - links to CONTRIBUTING.md and to languages.py #249
Hello @hatemhosny , I have released a new version of Jupytext (v 1.1.6) with both your contribution, and a fix for this issue:
Thanks again for reporting this - and please let me know if you find any other unexpected behavior ! |
great! I confirm, now jupytext supports javascript and typescript, I can create notebooks with default format "ipynb,auto" and the script files get saved with the correct extension. still if I use a kernel with unsupported language I get the errors shown here do we plan to handle this case in a better way? |
You're welcome, thanks again @hatemhosny for your contribution. I was also planning to announce the support for the new languages on twitter, do you have an account there?
That's right - I should have commented on that. It should be easy to intercept that error and skip the The reason why I've not implemented that is because I see this error... as an invitation to contribute additional languages to Jupytext 😄 . Can you tell us which languages you are using in addition to the supported ones ? Also, I am interested in your experience with Jupytext on these new languages. Are the Javascript scripts produced by Jupytext syntaxicaly correct? Reversely, does the conversion script -> notebook produce reasonable cells? I am asking because currently 1. the detection of multiline strings (and comments) is only implemented for Python and R and 2. cells breaks are on blank lines that are followed by an non-indented paragraph, which is very Pythonic, but turns out to work also for languages that use brackets, at least until the user inserts blank lines before the closing brackets... |
a great project!
thanks a lot for making this available :)
I am trying to setup default format pairing like that in
.jupyter/jupyter_notebook_config.py
now, whenever I try creating a new notebook in jupyter lab I get these errors:
and in jupyter notebook:
on the other hand, if I open a pre-existing notebook and save it, it is saved correctly with the extension suitable for the kernel I use, even if I change the kernel.
the described errors do not occur if I use a regular extension like
py
ormd
:am I missing something?
I am using jupytext==1.1.5
thank you
The text was updated successfully, but these errors were encountered: