Forum Discussion
Thomas_R
2 years agoFrequent Visitor
Import (function) notebook into own nootbook
Hi all Is there any way to import one nootbook into another and at the same time have easy version control? My purpos is to have a function-nootbook I can create a lot of usefull functions (a...
12angrymentiger
2 years agoAdvocate III
We do this all the time.
We have a notebook called common_functions in which we can use in the parent notebook.
You will have to call the functions notebook this way in order to have the functions/variables in the session memory: %run common_functions
If you run the child notebook this way, it will create a new session and you can't reference the child notebook functions in the parent notebook: mssparkutils.notebook.run("notebook", params)
Nashrin
2 years agoFrequent Visitor
Hi,
I have a specific use case where I need a DataFrame in return after running the parent notebook. Is ther any suggested way to handle this type of scenarios.