Skip to content

Instantly share code, notes, and snippets.

View maartenbreddels's full-sized avatar

Maarten Breddels maartenbreddels

View GitHub Profile
@maartenbreddels
maartenbreddels / reacton-in-panel.py
Created December 13, 2022 19:58
Reacton running in Panel
# $ 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():
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maartenbreddels
maartenbreddels / ipyleaflet.ipynb
Created October 19, 2018 13:05
ipyleaflet + png image in mime bundle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maartenbreddels
maartenbreddels / vaex-lightning-talk.ipynb
Created July 14, 2018 04:05
scipy2018 lightning talk on vaex
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maartenbreddels
maartenbreddels / trackml-ipyvolume.ipynb
Last active May 2, 2018 18:50
Using ipyvolume for the trackml kaggle challenge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maartenbreddels
maartenbreddels / Makefile
Created April 28, 2018 18:10
Makefile for converting GaiaDR2 cvs files to a single hdf5 file
# 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)
@maartenbreddels
maartenbreddels / h5map.ipynb
Created October 25, 2017 12:25
memory mapping hdf5 continuous data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maartenbreddels
maartenbreddels / ExpensivePlot.ipynb
Created October 10, 2017 13:56
Using _view_count in ipywidget to lazily update an 'expensive' plot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.