-
Notifications
You must be signed in to change notification settings - Fork 391
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
HTML Display in .ipynb using R kernel #234
Comments
Even simpler code to reproduce the error (replaces point 2 above):
[Sorry but getting errors uploading screenshot.] |
Hello @Naveen-Annam-CMA , thanks for reporting this. By the way, an user with the same config as yours reported an issue with the chunk language (#227), you may want to update to version 1.1.2. |
Sorry, we are actually using version 1.1.3. |
Good. I was able to reproduce the issue. Jupytext fails to copy the notebook and save it as a Rmd file because the notebook cannot be validated. I do not know exactly what that means, but I will have a look into that. The stacktrace is File "/home/marc/.conda/envs/python3/lib/python3.7/site-packages/jupytext/jupytext.py", line 110, in writes
nb = new_notebook(cells=nb.cells, metadata=deepcopy(metadata or nb.metadata))
(...)
nbformat.validator.NotebookValidationError: Additional properties are not allowed ('source' was unexpected) Do we agree that we get a similar warning (not fatal, though) when you only save the ipynb, without pairing to the R Markdown file? In mean, in that case I see that the console says:
|
This seems to be related to IRkernel/IRkernel#551. In my tests I have used IRkernel from conda, and it comes in version 0.8.12. Yet I see that IRkernel also exists in version 1.0. Which version are you using? Can you get rid of the validation error/warning (with Jupytext off) with the latest version of IRkernel? |
Thank you for your response. Updating the IRkernel package to version 1.0 seems to have resolved the issue. |
Great news! Well that was an interesting issue. On Jupytext's side I will see if I can make it robust to non-fully valid notebooks, I mean, since Jupyter does not fail, Jupytext should not either... |
Issue
I'm trying to display some HTML table generated by the DT library, and save a notebook that uses an R kernel. I'm using the workaround detailed in this SO question, which uses
display_html
to display the HTML generated byDT
.JupyterLab does not allow to save the .ipynb file, giving the following error message
Also, this message keeps popping up
If I try to close and reopen the .ipynb notebook, I get the following message:
Despite everything, the .Rmd file looks to be correct.
Steps to reproduce
Using jupytext 1.1.1 and c.ContentsManager.default_jupytext_formats = "ipynb,Rmd" in notebook config.
Wait a few seconds for the error message 'File Changed' to appear
Try saving the .ipynb file for the 'File Save Error' message to appear
Close and reopen the .ipynb for the 'Load Error' message to appear
The text was updated successfully, but these errors were encountered: