- 4099 Views
- 1 replies
- 2 kudos
Please help. Here's an example:I have one .py file and one .ipynb, and the .py file contains the test function, but after adding the new function test1, it doesn't appear in .ipynb. Even after re-running the .py file and reimporting it in .ipynb. How...
- 4099 Views
- 1 replies
- 2 kudos
Latest Reply
%load_ext autoreload%autoreload 2
by
Craig_
• New Contributor III
- 4078 Views
- 4 replies
- 0 kudos
The ability to import .py files into notebooks looked like a clean and easy way to reuse code and to ensure all notebooks are using the same version of code. However, two items remain unclear after scouring documentation and forums.Are these the rig...
- 4078 Views
- 4 replies
- 0 kudos
Latest Reply
"does not have access to the spark session by default" yes, that is correct you need to pass the reference to the spark variable inside Class or Function, something like when you call from notebook function_from_file(spark=spark)displayHTML() is desi...
3 More Replies
- 5742 Views
- 4 replies
- 1 kudos
I have stored a test.py in the dbfs at the below location "/dbfs/FileStore/shared_uploads/krishna@company.com/Project_Folder/test.py"I have a print statement in test.py which says the belowprint( os.getcwd() )and it prints the below'/databricks/drive...
- 5742 Views
- 4 replies
- 1 kudos
Latest Reply
Hey @Krishna Zanwar Please use the below code this will work and as you want the specific location you can create a custom code and format the path using a python formatter , it will give you desired result .
3 More Replies
by
KVNARK
• Honored Contributor II
- 1282 Views
- 1 replies
- 5 kudos
Hi,I have 3 .py files - a.py, b.py & c.py files. By joining a.py & b.py, based on the output that I get need to trigger the c.py file.
- 1282 Views
- 1 replies
- 5 kudos
Latest Reply
Hi @KVNARK . refer below link this will help in thisLink
- 15124 Views
- 3 replies
- 2 kudos
Hi team,I wants to run the below command in databricks and also need to capture the error and success message.Please help me out here,Thanks in advanceEx: python3 /mnt/users/code/x.py --arguments
- 15124 Views
- 3 replies
- 2 kudos
Latest Reply
Hello @Piper Wilson Would this task not help?https://docs.databricks.com/dev-tools/api/latest/examples.html#jobs-api-examples
2 More Replies
- 20950 Views
- 2 replies
- 3 kudos
I want to execute shell script which is running .py file. May I know how to run .sh file and .py files in Databricks workspace?
- 20950 Views
- 2 replies
- 3 kudos
Latest Reply
I tried executing like this and it worked: %sh /dbfs/***/***/***.sh
1 More Replies