cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Python code linter in Databricks notebook

Oliver_Angelil
Valued Contributor II

Is it possible to get syntax linting in a DB notebook? Say with flake8, like I do in VS code?

1 ACCEPTED SOLUTION

Accepted Solutions

artsheiko
Valued Contributor III
Valued Contributor III

No linting in a DB notebook available for now.

The Notebook is currently in the process of adopting Monaco as the underlying code editor which will offer an improved code authoring experience for notebook cells.

Some of the Monaco editor features enabled in the notebook include :

  • Completions as you type
  • Object inspection on mouse hover
  • Code folding
  • Multi-cursor support
  • Column (box) selection
  • Bracket-matching
  • Side-by-side diffs in revision history
  • Improved find-and-replace
  • Better accessibility support

Need to wait for linting.

View solution in original post

4 REPLIES 4

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, syntax highlighting is possible, you can refer: https://docs.databricks.com/notebooks/notebooks-code.html.

Please let us know if this helps. Also, please tag @Debayan​ with your next comment so that I will get notified. Thank you!

Oliver_Angelil
Valued Contributor II

Hi @Debayan Mukherjee​, I don't see anything about linting in Python in that link?

artsheiko
Valued Contributor III
Valued Contributor III

No linting in a DB notebook available for now.

The Notebook is currently in the process of adopting Monaco as the underlying code editor which will offer an improved code authoring experience for notebook cells.

Some of the Monaco editor features enabled in the notebook include :

  • Completions as you type
  • Object inspection on mouse hover
  • Code folding
  • Multi-cursor support
  • Column (box) selection
  • Bracket-matching
  • Side-by-side diffs in revision history
  • Improved find-and-replace
  • Better accessibility support

Need to wait for linting.

Thanks @Artem Sheiko​