# Is there a load hook?

**URL:** <https://discourse.jupyter.org/t/is-there-a-load-hook/5718>\
**Category:** General\
**Created:** [August 24, 2020, 11:39pm UTC](https://discourse.jupyter.org/t/is-there-a-load-hook/5718 "2020-08-24T23:39:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arogozhnikov](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/arogozhnikov/32/2535_2.png) [@arogozhnikov](https://discourse.jupyter.org/u/arogozhnikov)\
**Post date:** [August 24, 2020, 11:39pm UTC](https://discourse.jupyter.org/t/is-there-a-load-hook/5718/1 "2020-08-24T23:39:37Z")

</div>

Jupyter provides pre- and post- hooks, is there a similar hook on loading notebook?

Example:

- I want to store python files like ‘example.ipynb.py’
- on opening those will convert to jupyter notebook
- on saving notebook converts to python file (notebooks themselves are never saved)

(I know of numerous extensiosns/exporters, need to understand mechanics how do I implement that)
