# Viewing the content of an array in a browser

**URL:** <https://discourse.julialang.org/t/viewing-the-content-of-an-array-in-a-browser/42297>\
**Category:** New to Julia\
**Created:** [June 30, 2020, 10:11am UTC](https://discourse.julialang.org/t/viewing-the-content-of-an-array-in-a-browser/42297 "2020-06-30T10:11:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nash/32/14482_2.png) [@Nash](https://discourse.julialang.org/u/Nash)\
**Post date:** [June 30, 2020, 10:11am UTC](https://discourse.julialang.org/t/viewing-the-content-of-an-array-in-a-browser/42297/1 "2020-06-30T10:11:05Z")

</div>

I have a script that updates every T seconds. The result of each update is an array. I would now like to display the content of the array on a (local) website using a browser, and then have the display update when my script updates.

Can someone point me in the right direction for achieving this task?

---

<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:** [June 30, 2020, 10:17am UTC](https://discourse.julialang.org/t/viewing-the-content-of-an-array-in-a-browser/42297/2 "2020-06-30T10:17:51Z")

</div>

@Ronis_BR’s [PrettyTables](https://github.com/ronisbr/PrettyTables.jl) allows HTML output afaik. If you want the HTML to be live updated, you might want to consider using [LiveServer](https://github.com/asprionj/LiveServer.jl) to watch the changes and trigger a refresh.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [June 30, 2020, 10:57am UTC](https://discourse.julialang.org/t/viewing-the-content-of-an-array-in-a-browser/42297/3 "2020-06-30T10:57:30Z")

</div>

this would open a separate window displaying the array:

```julia
using Tables, TableView, Blink

x = [11 12.2;21 22] #try x = rand(10,5)

colNames = ["A","B"] #or perhaps string.(1:size(x,2))
tab = Tables.table(x,header=Symbol.(colNames))

w = Blink.Window()
body!(w,showtable(tab))

```
