Several thousand excess instances of outputPrepend in one cell, a much smaller number of excess instances in a second.
"cell_type": "code",
"metadata": {
"tags": [
"outputPrepend"
]
_Please provide as much info as you readily know_
It just has a theme: I assume I am missing something.
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
Thanks for letting us know @khs. Looks like we are just pushing that like crazy.
It could be the recent update. It could be something else. But in the past I've been able to smoothly alternate between opening notebooks in Jupyter and opening them in VSCode, so that is at least my best guess at what the change is.
Has to do with trimming strings. Regression from a couple releases ago.
This is an annoying bug :(
In case that's a useful workaround for some (but use at own risk, I haven't tested it extensively!) to "purge" all the outputPrepends, which make the resulting jupyter notebooks impossible to export to other formats, one can use sed in a linux command line:
# delete outputPrepends, and then get rid of blank lines
sed -e 's/"outputPrepend",//g' broken.ipynb | sed -r '/^\s*$/d' > sanitized.ipynb
or replace the regex "outputPrepend",\n with nothing in VSCode, when visualizing the raw json structure of the "damaged" .ipynb file.
The resulting .ipynb file should pass validations without errors.
This should be fixed in our insider's build if you want to try it out.
https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix
Validated just one outputPrepend in the metadata, and file with trimmed output opens in jupyter as well.
Most helpful comment
This should be fixed in our insider's build if you want to try it out.
https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix