Us nbimporter, create a function of the code you want to use. Pick your favorite api framework (sanic, flask, fast API). Import your function from your notebook and wrap in a simple get/post request. Additionally take the output of your function and return it as some kind of Json item.
I can setup a quick demo if any of this went over your head. Think this is a great idea to develop robust/testable code that's easy to debug.
No one uses falcon lmao