# Best way to serve GraphPlot.jl plots on a web app

**URL:** <https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346>\
**Category:** New to Julia\
**Created:** [February 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346 "2024-02-17T14:45:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_O\_Brien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver_o_brien/32/207102_2.png) [@Oliver\_O\_Brien](https://discourse.julialang.org/u/Oliver_O_Brien)\
**Post date:** [February 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346/1 "2024-02-17T14:45:46Z")

</div>

Hi,

I am struggling to find support for serving GraphPlot.jl plots across the internet. Genie only seems to support Plotly which does not have a nice way (that I can find) of plotting network graphs from Graphs.jl. I have also tried interact but I have hit a WebIO not detected issue when trying to serve this using port forwarding on an apache web server. Any suggestions of other avenues to explore would be much appreciated?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [February 18, 2024, 2:49pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346/2 "2024-02-18T14:49:25Z")

</div>

Does this need to involve real time calculations or can it be a pregenerated static snapshot of the data?

---

<div class="post-metadata">

**Author:** ![Oliver\_O\_Brien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver_o_brien/32/207102_2.png) [@Oliver\_O\_Brien](https://discourse.julialang.org/u/Oliver_O_Brien)\
**Post date:** [February 18, 2024, 3:10pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346/3 "2024-02-18T15:10:05Z")

</div>

Real time calculations. I want to have sliders and dropdowns to specify the graphs and then also do some calculations to produce the labels for the graphs.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [February 18, 2024, 7:32pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346/4 "2024-02-18T19:32:57Z")

</div>

Sliders and drop downs often have a finite number of options. You could precompute all the permutations and then have the site be completely static.

For example, [GitHub - JuliaPluto/PlutoSliderServer.jl: Web server to run just the `@bind` parts of a Pluto.jl notebook](https://github.com/JuliaPluto/PlutoSliderServer.jl) or [GitHub - rikhuijzer/PlutoStaticHTML.jl: Convert Pluto notebooks to HTML in automated workflows](https://github.com/rikhuijzer/PlutoStaticHTML.jl) take this approach.

You can see an example of this at [Principal Component Analysis — Interactive Computational Thinking — MIT](https://computationalthinking.mit.edu/Fall23/data_science/pca/) .

Perhaps the other question is how often does the underlying data change?

If you do need compute and are willing to pay for it, you can take a look at [https://cloud.jolin.io/](https://cloud.jolin.io/) .

Another, future way in development is WebAssemblyCompiler.jl:

> **[Lorenz model · WebAssemblyCompiler](https://tshort.github.io/WebAssemblyCompiler.jl/stable/examples/lorenz/)**
>
> Documentation for WebAssemblyCompiler.

---

<div class="post-metadata">

**Author:** ![Oliver\_O\_Brien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver_o_brien/32/207102_2.png) [@Oliver\_O\_Brien](https://discourse.julialang.org/u/Oliver_O_Brien)\
**Post date:** [February 18, 2024, 7:59pm UTC](https://discourse.julialang.org/t/best-way-to-serve-graphplot-jl-plots-on-a-web-app/110346/5 "2024-02-18T19:59:56Z")

</div>

Thank you, that is a very smart suggestion. I will give that a go. It would be very nice to make it a completely static site.
