โ10-24-2024 03:33 AM
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 weeks ago
This has now been resolved and is working as expected. Do not know why or how, but something has changed that made it work ๐
โ10-24-2024 03:34 AM
Screenshot that did not get included:
โ10-24-2024 11:21 AM
Hi @eirik_morken ,
As per documentation this features only work when the notebook is attached to the cluster:
Make sure to attach to cluster:
And you can use the functionality:
If the notebook is not attached to the cluster, one gets the ""No definition found" message:
โ10-24-2024 11:21 PM
It is 100 % attached to the cluster, I just ran the test code 2 seconds before pressing the button ๐
That is what makes it strange.
โ10-25-2024 07:49 AM
Hi @eirik_morken ,
Could you tell us what's you cluster runtime? The โgo to definitionโ feature is available in Databricks Runtime 12.2 LTS and above.
a month ago
15.4 LTS ML (includes Apache Spark 3.5.0, Scala 2.12)
a month ago
Update: It seems to only affect my PC.
A colleague of mine tried to use the peek functionality on their own computer in the same tenant and the same cluster, and then it worked!
I logged into their computer in incognito tab and then it worked too.
My colleague then logged into my computer in an incognito tab and it did not work.
So we are a bit lost about what can cause this. We are supposed to have the same managed PC system from the company as well.
Any ideas? Or just accept that my PC has been cursed by the Databricks spirits?
4 weeks ago
Update: Not only my PC, but could be PC specific.
Found other colleagues which had the same issue, so not just my PC.
4 weeks ago
Hi @eirik_morken ,
It seems it is related more to your configurations or permissions rather than Databricks itself.
Have you tried checking different browsers? Maybe pop-ups are blocked by some setting or policy?
4 weeks ago - last edited 4 weeks ago
I have tried in edge, firefox and chrome in incognito mode, all with popups enabled.
Is this function even treated like a popup? Is it not internal web-app functionality?
2 weeks ago
This has now been resolved and is working as expected. Do not know why or how, but something has changed that made it work ๐
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