cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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
Databricks Employee
Databricks Employee

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
Databricks Employee
Databricks Employee

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
Databricks Employee
Databricks Employee

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โ€‹ 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group