The way to solve this problem is to add the path of your code to the system, then proceed to import modules selectively or all modules in a file.
You can download an example notebook from here https://github.com/javierorozco/databricks_import_python...
yes it is python code, I let it run and it managed to finish.
I was following the initial instruction of how to import third party python modules. The instruction was to run them. However the same code runs faster within a notebook. The problem is ...
I doesn't seem to work either, I created a "Hello World" inside a python script. If I run it with ".py" shows same error, but without ".py" looks executing but never ends until I cancel it.
This the exact copy of the code
%run '/Users/admin/s3_handling_poc.py'
Notebook not found: /Users/admin/s3_handling_poc.py
Whereas with a Notebook it does work:
%run /Users/admin/test2
Command took 0.18s
Hello World
Hi Vida,
I have the same problem, and I followed your solution but I get the error that the file cannot be found. I tried with and without full path when the run2.py is in the same folder of the notebook
Stacktrace: /Users/username/Test NB: python
T...