4

I have a synapse notebook with parameters .I am trying to call that notebook from another notebook. I am using %run command.

How should I pass the parameters from the base notebook to the one that is being called?

3 Answers3

4

Also, for me the above answers didn't work.

As a separate solution to this, below is an answer.

  1. Open the notebook and go to the properties tab on extreme right adjacent to 3 dots.
  2. Check "Enable Unpublish Notebook reference."
  3. Commit all changes.

Now, you will be able to use both %run and mssparkutils command.

Sajjad Manal
  • 371
  • 4
  • 25
1

at this time you should first import an library

from notebookutils import mssparkutils

mssparkutils.notebook.run('yourfolder/yournotebook')
Kiarash y
  • 11
  • 3
0

Can you use Python and follow the example shown here?

 mssparkutils.notebook.run("folder/Sample1", 90, {"input": 20 })
GregGalloway
  • 11,355
  • 3
  • 16
  • 47
  • How do you refer to root folder when the caller notebook is in subfolder? E.g. target notebook is `\\sharedLibrary`, caller notebook is `\\solution1\step1`. I couldn't find any functional syntax. Moving the library to solution folder was the only option (i.e. no problem calling it from `\\solution1\sharedLibrary` as `%run '/solution1/sharedLibrary` – Dan Dec 11 '22 at 22:12