cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Python function "go to definition" and "peek definition" do not work

eirik_morken
Visitor

When using notebooks with python in Databricks I would really like to easily see the defintion of the functions I am using within the editor. 
Which the "Go to definition (F12)" and "Peek definition" options when right clicking on the functions will help with.

However they do not seem to work for anyone on our tenant. 
It only displays "No definition found for 'test_function'" 
What could be the cause of this?


2 REPLIES 2

eirik_morken
Visitor

Screenshot that did not get included:

eirik_morken_0-1729766071920.png

 

Hi @eirik_morken ,

As per documentation this features only work when the notebook is attached to the cluster:

filipniziol_0-1729793894816.png

Make sure to attach to cluster:

filipniziol_1-1729793920974.png


And you can use the functionality:

filipniziol_2-1729793943001.png

If the notebook is not attached to the cluster, one gets the ""No definition found" message:

filipniziol_3-1729794097157.png

 




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