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.

`def` keyword is not syntax highlighted

See original GitHub issue

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Open a new jupyter notebook in vscode
  2. Type def a(): pass in a cell

Actual behavior

def keyword is not highlighted image

Expected behavior

Should be blue

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2020.1.58038
  • VS Code version: 1.41.1
  • Setting python.jediEnabled: false
  • Python version: Python 3.6.9 64-bit
  • OS: Windows, but opened vscode in wsl
  • Virtual environment: none

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rchiodocommented, Jan 15, 2020

Here’s the VS code feature request we need to make this work: https://github.com/microsoft/vscode/issues/32813

0reactions
rchiodocommented, Jan 15, 2020

And that’s probably why it doesn’t work. Our secondary hack is missing some tokens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`def` keyword is not syntax highlighted · Issue #2417 - GitHub
Open a new jupyter notebook in vscode · Type def a(): pass in a cell ...
Read more >
Monaco-Editor Some keywords are not highlighted
I feel the same language is randomly highlighted. the version is "monaco-editor": "0.18.1", "monaco-editor-webpack-plugin": "1.7.0 ...
Read more >
Syntax Highlight Guide | Visual Studio Code Extension API
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords...
Read more >
How can I fix "missing" syntax highlighting for Python ...
1 Answer 1 · In syntax/<filetype>.vim the syntax rules are defined with the :syntax command. This command defines, well, syntax. · :highlight says ......
Read more >
Syntax highlighting - Wikipedia
Highlighting does not affect the meaning of the text itself; it is intended only for human readers. HTML syntax highlighting. Syntax highlighting is...
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