Running Python code from Jupyter and transforming it in a Sage function
I would like to know if it is possible to run a python code directly within a notebook and transform it in a sagemath function. The problem is that I am nearly sure that is possible, but I do not know how to install it --- I am under windows an a poor programmer.
For instance if some one has to kindness to take as an exemple https://github.com/fordc5/PrisonersDi..., it will be great.
Aside from Emmanuel's answer, which is correct, it's not really clear to me what you tried to do or what problem you had. When you write "The problem is that I am nearly sure that is possible, but I do not know how to install it" I'm not sure what you mean by "install it". Install what?