โ02-18-2015 01:26 PM
โ02-18-2015 01:26 PM
Sure. Use the %run syntax as follows:
%run /PoundInclude
The target notebook does not need to be attached to a cluster. It will get pulled into the caller's context.
At this time, you can't combine Scala and Python notebooks, but you can combine Scala+SQL and Python+SQL notebooks.
You must specify the fully-qualified notebook from the root of the Workspace. Relative paths are not supported at this time.
If you have spaces in your notebook name, you'll need to surround the target of %run with quotes as follows:
%run "/PoundInclude (Python)"
โ03-23-2015 03:47 PM
I'm missing something obvious here, I'm running %run 'notebook2' inside 'notebook1' where both notebooks are in the main Workspace directory and receiving the error:
ERROR: File
u'notebook2.py'
not found.
Is there a path setting I forgot?
Thanks
โ03-25-2015 08:26 PM
Try running the %run in a new cell. There can't be any other code in the same cell performing the %run. You can still use the results of the %run in subsequent cells.
โ05-20-2016 05:22 AM
I also have the same issue. I don't have any other code in the cell.
โ10-28-2016 06:21 AM
Bit late: even comments can cause this issue
โ08-10-2017 08:54 AM
You can now use relative paths, e.g. %run "./PoundInclude (Python)"
โ02-07-2017 02:03 PM
Does including the notebook file extension help you, e.g.
%run my_other_notebook.ipynb
?
โ05-14-2018 12:52 AM
I want to run an existing notebook from another R notebook.
โ08-08-2018 01:10 AM
dbutils.notebook.run("notebook_name", time(in sec) ,{ " "db_name" : "jmdc_20180731_test"}) @Christian Rodriguez @jayashree @Roger Erens
For example:
dbutils.notebook.run("notebook_1", 600,{ "db_name" : "jmdc_20180731_test"})
Please let me know if you do have any issues.
Mail id : vinayakbhrdwj@gmail.com
โ08-30-2019 04:12 AM
How to call function of notebook_name from let say calling notebook.can you give an example for that use case
โ12-05-2018 02:40 AM
How do I make the notebook run in a different window on calling? @Roger Erens
โ05-03-2019 12:15 AM
Is it possible to import a particular function using %run statement in azure databricks?
โ05-31-2019 06:26 AM
Yes we can import all things (functions,variables etc) from one notebook to another notebook...
Just remember to run %run /Users/path/Notebook_Name in a separate cell
and then you can call one notebook functions in another one @amanpreet kaur
โ06-02-2019 11:20 PM
Is it possible to do something like this: %run /Users/path/Notebook_Name Function_Name ?
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