# Revise post-compilation hooks

**URL:** <https://discourse.julialang.org/t/revise-post-compilation-hooks/54629>\
**Category:** General Usage\
**Created:** [February 4, 2021, 4:40pm UTC](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629 "2021-02-04T16:40:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [February 4, 2021, 4:40pm UTC](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629/1 "2021-02-04T16:40:26Z")

</div>

I was wondering if there is any way to hook into Revise’s compilation cycle. I’m aware of `entr` which is great when watching files - and basically what I’m looking for is similar behavior but for code changes that are not saved to a file. The use case here is code being evaled in the REPL or VSCode and invoking a function when recompilation is complete (in my case reloading a web page).

@tim.holy 🙏

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [February 4, 2021, 9:08pm UTC](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629/2 "2021-02-04T21:08:04Z")

</div>

Does `Revise.add_callback` do what you need?

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [February 5, 2021, 9:50am UTC](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629/3 "2021-02-05T09:50:20Z")

</div>

Fantastic, thank you!

Sorry, I should’ve checked the API docs, I’ve only read the tutorials and haven’t found this.
