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?
at this time you should first import an library
from notebookutils import mssparkutils
mssparkutils.notebook.run('yourfolder/yournotebook')
您可以使用 Python 并按照此处显示的示例进行操作吗?
mssparkutils.notebook.run("folder/Sample1", 90, {"input": 20 })
Also, for me the above answers didn't work.
As a separate solution to this, below is an answer.
- Open the notebook and go to the properties tab on extreme right adjacent to 3 dots.
- Check "Enable Unpublish Notebook reference."
- Commit all changes.
Now, you will be able to use both %run
and mssparkutils
command.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.