Jupyter/IPython notebook output by VSCode not rendered

Summary

Output of python notebooks using the newer output-format are not rendered at all

Steps to reproduce

  • create a python notebook with jupyter notebook web interface
  • add print("Test") line
  • execute script
  • save
  • add to git-project and upload to gitlab
  • view uploaded python notebook
  • see, there is output

do the same thing with a Visual Studio Code and python plugin and there will be no output when uploading the modified notbook

Example Project

https://gitlab.com/NeroBurner/ipython_output_test

What is the current bug behavior?

python notebook output written by VSCode is not shown

What is the expected correct behavior?

output should be shown

Relevant logs and/or screenshots

  • format3
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": ["Test\n"]
    }

Screenshot_20200330_135956

  • format4
"outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": "Test\n"
    }

Screenshot_20200330_140211

Output of checks

This bug happens on GitLab.com

Possible fixes

VSCode uses the newer NBFormat Version 4.1, which allows the output text to be a simple string

gitlab supports only the old NBFormat Version 3.2, which requires output to be an array