This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.models.widgets import Button, Dropdown | |
from bokeh.layouts import column, widgetbox, row | |
from bokeh.io import show, curdoc, output_notebook | |
from bokeh.application.handlers import FunctionHandler | |
from bokeh.application import Application | |
def modify_doc(doc): | |
# This works with Bokeh server and jupyter: | |
main_button = Button(label='Refresh') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.io import show, curdoc | |
from bokeh.models.widgets import Button | |
from bokeh.layouts import row, widgetbox | |
from bokeh.models import ColumnDataSource, CustomJS | |
from bokeh import events | |
button = Button(label = 'Send HelloWorld to console') | |
source = ColumnDataSource(data=dict()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.models.widgets import Panel, Tabs, Button | |
from bokeh.io import curdoc | |
from bokeh.plotting import figure | |
from bokeh.layouts import column, widgetbox | |
p1 = figure(plot_width=300, plot_height=300) | |
p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=20, color="navy", alpha=0.5) | |
tab1 = Panel(child=p1, title="circle") | |
p2 = figure(plot_width=300, plot_height=300) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.models.widgets import Panel, Tabs, Button | |
from bokeh.io import curdoc | |
from bokeh.plotting import figure | |
from bokeh.layouts import column, widgetbox | |
p1 = figure(plot_width=300, plot_height=300) | |
p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=20, color="navy", alpha=0.5) | |
tab1 = Panel(child=p1, title="circle") | |
tabs = Tabs(tabs=[tab1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynwb.spec import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
import numpy as np | |
from pynwb import get_class, load_namespaces | |
mylab = 'alleninstitute' | |
ns_path = "%s.namespace.yaml" % mylab | |
ext_source = "%s.extensions.yaml" % mylab | |
ns_builder = NWBNamespaceBuilder('Extension for use in my Lab', mylab) | |
ext = NWBGroupSpec('A custom FiringRate for my lab', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynwb import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
import numpy as np | |
ns_path = "mylab.namespace.yaml" | |
ext_source = "mylab.extensions.yaml" | |
nwb_as = NWBAttributeSpec('unit', 'str', 'the population name', value = 'Hz') | |
ns_builder = NWBNamespaceBuilder('Extension for use in my Lab', "mylab") | |
ext = NWBGroupSpec('A custom TimeSeries for my lab', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys.path.append('/Users/nicholasc/Janelia_NWB_Hackathon/pynwb/src') | |
from pynwb import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
import numpy as np | |
from pynwb import get_class, load_namespaces | |
from datetime import datetime | |
from pynwb import NWBFile | |
from form.backends.hdf5 import HDF5IO | |
from pynwb import get_build_manager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynwb import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
from pynwb import get_class, load_namespaces | |
ns_path = "table.namespace.yaml" | |
ext_source = "table.extensions.yaml" | |
ns_builder = NWBNamespaceBuilder('A table namespace', "table") | |
ext = NWBGroupSpec('A table group', | |
neurodata_type_def='Table') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynwb import NWBNamespaceBuilder, NWBDatasetSpec, NWBAttributeSpec | |
import numpy as np | |
from pynwb import get_class, load_namespaces | |
from datetime import datetime | |
from pynwb import NWBFile | |
from form.backends.hdf5 import HDF5IO | |
from pynwb import get_build_manager | |
ns_path = "mylab.namespace.yaml" |
OlderNewer