Jupyter notebook code in uipath

This guide will help you write the InvokePython code:
https://nbconvert.readthedocs.io/en/latest/execute_api.html

You could also execute the notebook using powershell and command line arguments, as also suggested in the link above.