-
Notifications
You must be signed in to change notification settings - Fork 293
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
Validation Issue when opening .ipynb file in other .ipynb editors (Jupyter Notebook) #2063
Comments
I have almost the same issue after working as usual in VSCode and then opening .ipynb in Jupyter Notebook:
VSCode ver.: 1.43.2 |
Sounds like a possible regression of microsoft/vscode-python#8772. |
Hi @shac12, could you give us some specifics steps to get to a markdown cell with outputs and execution time? I've been trying it executing a code cell a bunch of times, changing it to markdown and saving. But I can't get it to give me a bad notebook. We'd appreciate anything you can find. Edit: Also, could you try it with our insider's build? Maybe that one doesn't have the issue. |
Hi @DavidKutu I will try and replicate the scenario as best as i can but it can be inconsistent. Im not really sure how to do this step " to get to a markdown cell with outputs and execution time?". I'm not sure that, that is the issue. It seems that when I start a ipynb file in vscode and then try and open it in jupyter notebook, jupyter notebook complains that this is not a valid file. I can send you a test file if you would like ? I believe that there is some issue with the actual save functionality of vscode but I can only speculate. How would I get into the insiders build ? cheers for following up on this. |
The bit about
is what jupyter notebook is saying on the validation error. That happens when a markdown cell has either the 'ouputs' or the 'execution_time' properties.
Or:
That's what I've been trying to get the validation error to show up, but haven't been able to. Any steps that you can give us to reproduce the validation error would help a lot. (For example, open a new notebook, type this in the first cell, save it, etc...). To use the insiders build you can download VS code insiders: https://code.visualstudio.com/insiders/ Its another VS code, but it updates to the latest build, even before release. If you get the python extension on VS code insiders, you will be using our latest build that might have your issue resolved. |
Moving to validate as we have fixed this (AFAIK) |
Validated. I'm not able to create the markdown cells with execution_count or output anymore. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): Disabledpython.languageServer
setting: MicrosoftExpected behaviour
The file is expetected to open normally in Jupyter Notebook
Actual behaviour
Upon opening the .ipynb file this validation error occurs.
Notebook validation failed: Additional properties are not allowed ('outputs', 'execution_count' were unexpected):
{
"cell_type": "markdown",
"metadata": {},
"source": "# Comp9417 - Homework 2\n## Question 2",
"execution_count": null,
"outputs": []
}
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Produces this validation error.
Notebook validation failed: Additional properties are not allowed ('outputs', 'execution_count' were unexpected):
{
"cell_type": "markdown",
"metadata": {},
"source": "# Comp9417 - Homework 2\n## Question 2",
"execution_count": null,
"outputs": []
}
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: