This is a simple Altair example that compares the performance of different cars.
This code below is included from PyCafe directly.
# $ panel serve reacton-in-panel.py | |
import panel as pn | |
import reacton | |
import reacton.ipywidgets as w | |
@reacton.component | |
def ButtonClick(label="Hi"): | |
clicks, set_clicks = reacton.use_state(0) | |
def increment(): |
# Makefile for converting the CSV files from http://cdn.gea.esac.esa.int/Gaia/gdr2/gaia_source/csv/ | |
# to a single (vaex) hdf5 file | |
# * https://docs.vaex.io | |
# * https://github.com/maartenbreddels/vaex/ | |
# It is multistage to work around opening 60 000 files at once. | |
# Strategy is | |
# * stage1: convert all cvs.gz to csv to hdf5 | |
# * do this via xargs and calling make again, since gmake has trouble matching 60 000 rules | |
# * stage2: Create part-<NUMBER>.txt files containing max FILES_PER_PART per file | |
# * stage3: convert the list of hdf5 files to single hdf5 files (part-<NUMBER>.hdf5) |