# Interact.jl live reload

**URL:** <https://discourse.julialang.org/t/interact-jl-live-reload/35109>\
**Category:** General Usage\
**Created:** [February 25, 2020, 11:29am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109 "2020-02-25T11:29:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [February 25, 2020, 11:29am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109/1 "2020-02-25T11:29:11Z")

</div>

Hi! I’m trying out Interact.jl and use `Mux` as they suggest for serving the web page:

```julia
ui = ...
WebIO.webio_serve(Mux.page("/", req -> ui), 8000)

```

What I don’t understand is how to get “live reload” or something similar? When I modify and reexecute the `ui = ...` line, obviously nothing changes, and the served web page stays the same. Running `webio_serve` again requires to stop the previous execution manually, otherwise the port is occupied.

---

<div class="post-metadata">

**Author:** ![dustyirwin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dustyirwin/32/14996_2.png) [@dustyirwin](https://discourse.julialang.org/u/dustyirwin)\
**Post date:** [March 18, 2020, 3:21am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109/2 "2020-03-18T03:21:02Z")

</div>

I’m running into the same problem. Any ideas out there?

---

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [April 6, 2020, 1:35am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109/3 "2020-04-06T01:35:12Z")

</div>

Judging by the lack of answers I guess that live reload is currently not possible. But then I don’t really see how the development workflow goes for `Interact.jl` web apps - does it really requires manual restart after each code modification?

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [April 6, 2020, 7:40am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109/4 "2020-04-06T07:40:23Z")

</div>

You could try [GitHub - tlienart/LiveServer.jl: Simple development server with live-reload capability for Julia.](https://github.com/asprionj/LiveServer.jl). Haven’t tested it with `Interact.jl` though.

---

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [April 6, 2020, 7:49am UTC](https://discourse.julialang.org/t/interact-jl-live-reload/35109/5 "2020-04-06T07:49:38Z")

</div>

LiveServer might work here, basically you can trigger a modification by saving the script you work on which would trigger a page reload, you might want to consider a [similar discussion for live reload with Weave](https://discourse.julialang.org/t/livereload-with-weave-jl/36750/4) which led to [this PR](https://github.com/asprionj/LiveServer.jl/pull/97); it should be possible to adapt it to your use case with Interact.  
Note that I’ve not tried this and am not very familiar with Interact so there may be hidden difficulties.

Btw, some people may be interested in [this recent discussion](https://github.com/tlienart/Franklin.jl/issues/440) to get Interact to work well with Franklin (which itself relies upon LiveServer) to get a locally served app with live reload, it should be interesting 🙂 .
