Skip to content

Instantly share code, notes, and snippets.

@Pabla007
Created March 6, 2019 03:16
Show Gist options
  • Save Pabla007/8e2c938688aa3420d38e6f253921db44 to your computer and use it in GitHub Desktop.
Save Pabla007/8e2c938688aa3420d38e6f253921db44 to your computer and use it in GitHub Desktop.
Make a interaction gui in Jupyter
import ipywidgets as widgets
import fileplot
path=widgets.Text(
value=raw_input("Enter the Path Csv File You Want to Plot here : "),
#placeholder="File Path",
#descrition="String:",
#disabled=False
)
button=widgets.Button(
description='Plot',
disabled=False,
button_style='', # 'success', 'info', 'warning', 'danger' or ''
tooltip='Click me',
icon='check'
)
def on_button_clicked(b):
#fileplot.load_file(np)
fileplot.load_file(path.value)
display(path,button)
button.on_click(on_button_clicked)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment