https://github.com/tpapp/browsetables.jl
Julia package for browsing tables that that implement the Tables.jl interface as HTML.
https://github.com/tpapp/browsetables.jl
Last synced: over 1 year ago
JSON representation
Julia package for browsing tables that that implement the Tables.jl interface as HTML.
- Host: GitHub
- URL: https://github.com/tpapp/browsetables.jl
- Owner: tpapp
- License: other
- Created: 2018-10-19T12:20:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T16:58:47.000Z (over 3 years ago)
- Last Synced: 2025-02-28T16:20:09.694Z (over 1 year ago)
- Language: Julia
- Size: 137 KB
- Stars: 31
- Watchers: 5
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BrowseTables.jl

[](https://github.com/tpapp/BrowseTables.jl/actions?query=workflow%3ACI)
[](http://codecov.io/github/tpapp/BrowseTables.jl?branch=master)
[](https://tpapp.github.io/BrowseTables.jl/stable)
[](https://tpapp.github.io/BrowseTables.jl/dev)
Julia package for browsing tables that that implement the [Tables.jl](https://github.com/JuliaData/Tables.jl) interface, as HTML.
## Installation
The package is registered, install with
```julia
pkg> add BrowseTables
```
## Usage
```julia
using BrowseTables, Tables
# make example table, but any table that supports Tables.jl will work
table = Tables.columntable(collect(i == 5 ? (a = missing, b = "string", c = nothing) :
(a = i, b = Float64(i), c = 'a'-1+i) for i in 1:10))
open_html_table(table) # open in browser
HTMLTable(table) # show HTML table using Julia's display system
```
The package exports four symbols:
1. `write_html_table` writes a table to a HTML file,
2. `open_html_table` writes the table and opens it in a browser using [DefaultApplication.jl](https://github.com/tpapp/DefaultApplication.jl),
3. `TableOptions` can be used to customize table appearance and HTML options for the above two functions.
4. `HTMLTable` displays an HTML table using Julia's display system. It needs a display supporting HTML output (e.g., [IJulia.jl](https://github.com/JuliaLang/IJulia.jl)).
Please read the docstrings for further information. That said, the primary design principle of this package is that it should “just work”, without further tweaking.
## How it looks
The above table renders as