Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

How to use function from 1 jupyter notebook in another jupyter notebook?

$
0
0

Please carefully answer the question after understanding the context:

Context: There are two python notebooks: first is "trading.ipynb" and second is "monitorTrades.ipynb". Now, while execution of main block in the first notebook a function has to be executed in the second notebook. Also this function has to be passed with 2 arguments which are calculated during the execution in first notebook. Also there are multiple functions in monitorTrades.ipynb, but I want to only run function 'checkFunc()' which is present in monitorTrades.ipynb. This function has 4 arguments, 2 arguments are in the monitorTrades.ipynb and 2 arguments are calculated during the execution of trading.ipynb.

The function must execute on monitorTrades.ipynb.

How to do this implement this?

Thanks for your answers.


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>