Get source code of a loaded function?

I had some code written in a file, which I was loading into a Jupyter notebook using include(<filename>), then running the functions in the file. Somehow the file got overwritten in such a way that I cannot recover the contents, but I still have the notebook open that had loaded the original code. Is there some way to recover the source code? I found this for python.