Skip to content

Instantly share code, notes, and snippets.

View jni's full-sized avatar

Juan Nunez-Iglesias jni

View GitHub Profile
@jni
jni / save_dataframe.py
Created September 21, 2018 08:52
Minimal example attempting to save dataframe from Bokeh selection
import pandas as pd
import numpy as np
from bokeh.server.server import Server
from bokeh.application import Application
from bokeh.application.handlers.function import FunctionHandler
from bokeh.plotting import figure
from bokeh.layouts import widgetbox, layout
from bokeh.models import ColumnDataSource
from bokeh.models.widgets import Button
@jni
jni / save_selection.py
Created September 25, 2018 07:17
attempt to save csv of selection from bokeh plot (not working)
"""Run this example as: python save_selection.py
Then navigate to localhost:5000
Use python save_selection.py -h for more options.
"""
import base64
import pandas as pd
import numpy as np