question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code in NB editor differs from executed code.

See original GitHub issue

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

Seems to occur randomly. Could it be connected to triggering the auto completion?

Actual behavior

image

Conversion to python file: image

{ "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "output_type": "error", "ename": "SyntaxError", "evalue": "invalid syntax (<ipython-input-24-832501616022>, line 1)", "traceback": [ "\u001b[0;36m File \u001b[0;32m\"<ipython-input-24-832501616022>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m df.melt(id_vars=fps) value_vars=props)ropna()\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n" ] } ], "source": [ "df.melt(id_vars=fps) value_vars=props)ropna()\n", "\n", "" ] },

If I reopen the file, the code is correctly displayed again.

Expected behavior

No errors.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Remote
  • Extension version: 2020.4.71515-dev
  • Setting python.jediEnabled: false
  • Python and/or Anaconda version: 3.7
  • OS: Windows | Mac | Linux (distro): Ubuntu 16.04
  • Virtual environment: virtualenv

Version: 1.44.0-insider Commit: d8e3cca049b1baa317ab9ef0d3f673b08e53d8fa Date: 2020-04-02T06:41:04.634Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Linux x64 5.3.0-42-generic snap

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DonJayamannecommented, Apr 6, 2020

I’m sorry for the issues this may have caused. I have been able to identify the cause of the issue and will be working on a fix.

1reaction
jmewcommented, Apr 3, 2020

Thanks, we’ll look into this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code in NB editor differs from executed code. #2050 - GitHub
Bug: Notebook Editor, Interactive Window, Editor cells. Steps to cause the bug to occur. Seems to occur randomly.
Read more >
nb · command line and local web plain text note-taking ...
With nb , you can write notes using Vim, Emacs, VS Code, Sublime Text, and any other text editor you like, as well...
Read more >
Execute .nb from command prompt on Windows 10
Hi, this seems a bit strange or unintended by Wolfram, to me. Can you, please, try to change the cell that contains the...
Read more >
Notebook API | Visual Studio Code Extension API
The Notebook API allows Visual Studio Code extensions to open files as notebooks, execute notebook code cells, and render notebook outputs in a...
Read more >
3.2 Notebook | R Markdown: The Definitive Guide - Bookdown
Code in the notebook is executed with the same gestures you would use to execute ... The primary difference is that when executing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found