โ03-31-2023 07:12 AM
โ04-03-2023 12:55 AM
@Hitesh Agarwalโ Hi. AFAIK, I don't see any examples with docstring in udf. We just add the comments using typical comment way. Is there anything in particular, you want to achieve using docstring?
โ04-03-2023 01:07 AM
@Vigneshraja Palanirajโ Hi, normal VS Code we can add docstring to python code but I was unable to do the same in databricks. After the latest updates in databricks we get auto-completion feature, also, when you hover over a system defined function there's a dialog box which gives you function definition, basic info and function return type. I wanted to achieve the same with user defined functios using docstring
โ04-03-2023 02:37 AM
Hi @Hitesh Agarwalโ Yes I get that. I don't see anything like that available yet. Let us see if any new feature is available for the same in upcoming releases.
โ04-03-2023 10:01 PM
Hi, I am not sure if this helps: https://www.databricks.com/blog/2020/12/15/python-autocomplete-improvements-for-databricks-notebooks...
Also, please tag @Debayanโ with your next response which will notify me. Thank you!
โ04-03-2023 10:35 PM
@Debayan Mukherjeeโ I have gone through this article and this doesn't helps as it mentions how to see docstrings for a system defined function but not how to add docstrings to user defined functions.
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