Search page to search code inside .py files

BigAlThePal
New Contributor III

Hello, hope you are doing good.
When on the search page, it seems it's not searching for code inside .py files but rather only the filename.

Is there an option somewhere I'm missing to be able to search inside .py files ?

 

Best,
Alan

SP_6721
Honored Contributor II

Hi @BigAlThePal 

As per my understanding, there isn’t a built-in option in the Databricks workspace to search inside .py files directly.

You could try a few workarounds though, like using the Databricks REST API to list .py files and programmatically search through their content. Another option is to use Databricks Repos and then use an external editor for more powerful search across your codebase.

BigAlThePal
New Contributor III

Hello, so it seems Databricks does not allow it - an easy workaround for us is to search directly on our Azure DevOps Repos.

View solution in original post