863141
New Contributor III

@Suteja Kanuri​ 

The notebookID method doesn't exist.

Py4JError: An error occurred while calling o709.notebookId. Trace:

py4j.Py4JException: Method notebookId([]) does not exist.

I tried currentRunId() and didn't use toJson() method but it didn't work out.

Py4JError: An error occurred while calling o709.currentRunId. Trace:

py4j.security.Py4JSecurityException: Method public scala.Option com.databricks.backend.common.rpc.CommandContext.currentRunId() is not whitelisted on class class com.databricks.backend.common.rpc.CommandContext