# How to use TableView in a browser?

**URL:** https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693
**Category:** General Usage
**Created:** [November 23, 2022, 9:50am UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693 "2022-11-23T09:50:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tp2750](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tp2750/32/207806_2.png) [@tp2750](https://discourse.julialang.org/u/tp2750)
#### Post date: [November 23, 2022, 9:50am UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693/1 "2022-11-23T09:50:20Z")

</div>

The documentation of [TableView](https://github.com/JuliaComputing/TableView.jl) shows how to show a (large) table in a Blink window:

```julia
julia> using TableView, Blink, DataFrames
julia> w = Blink.Window()
julia> body!(w, showtable(DataFrame(rand(100,100), :auto)))

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/3/c3c69595c72d51cdd7b1457213430771ad989866.png)

This is nice, but I’ll like to show the table in my normal browser (Firefox) in stead.

How do I do that?

---

<div class="post-metadata">

### Author: ![Ludovic\_Dumoulin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ludovic_dumoulin/32/22414_2.png) [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)
#### Post date: [November 24, 2022, 9:06am UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693/2 "2022-11-24T09:06:16Z")

</div>

Hey,  
Did you try with [Mux.jl](https://github.com/JuliaWeb/Mux.jl) ?  
I cannot guarantee it, but most of my Blink apps also work with Mux.  
But I don’t use TableView.  
If you are using jupyterlab, you can find a widget to explore .csv.

---

<div class="post-metadata">

### Author: ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)
#### Post date: [November 24, 2022, 12:26pm UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693/3 "2022-11-24T12:26:06Z")

</div>

Quick example with Mux:

```julia
using Mux, DataFrames, TableView

function myapp(req; table)
  return showtable(table)
end

df1 = DataFrame(rand(10,5), :auto)

@app r = (
  Mux.defaults,
  page("/mytable", req -> myapp(req; table=df1)),
  Mux.notfound());

serve(r, 2429)

```

Then open your browser to `http://localhost:2429/mytable`

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 24, 2022, 1:19pm UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693/4 "2022-11-24T13:19:19Z")

</div>

> [@jd-foster](#):
>
> Then open your browser to `http://localhost:2429/mytable`

FWIW, under Windows 11, the default browser can be launched fine from Julia with:

```julia
run(`explorer http://localhost:2429/mytable`)

```

although this command issues an error message…

**EDIT:**  
As per [this other post](https://discourse.julialang.org/t/opening-the-browser-from-julia-works-but-error/34482/2), a clean way to open the webpage (or other files) with OS’s default application is to use the [DefaultApplication.jl](https://github.com/tpapp/DefaultApplication.jl) package

---

<div class="post-metadata">

### Author: ![tp2750](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tp2750/32/207806_2.png) [@tp2750](https://discourse.julialang.org/u/tp2750)
#### Post date: [November 24, 2022, 1:25pm UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693/5 "2022-11-24T13:25:42Z")

</div>

Thanks a lot @jd-foster . This looks great!
