# Get source code of a loaded function?

**URL:** <https://discourse.julialang.org/t/get-source-code-of-a-loaded-function/36501>\
**Category:** General Usage\
**Created:** [March 25, 2020, 3:51pm UTC](https://discourse.julialang.org/t/get-source-code-of-a-loaded-function/36501 "2020-03-25T15:51:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [March 25, 2020, 3:51pm UTC](https://discourse.julialang.org/t/get-source-code-of-a-loaded-function/36501/1 "2020-03-25T15:51:49Z")

</div>

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](http://blog.rtwilson.com/how-to-rescue-lost-code-from-a-jupyteripython-notebook/) for python.
