Skip to content

Instantly share code, notes, and snippets.

View johntekdek's full-sized avatar

John Tekdek johntekdek

  • Santander
  • London
View GitHub Profile
{"lastUpload":"2020-03-19T07:09:30.825Z","extensionVersion":"v3.4.3"}
@johntekdek
johntekdek / changeslope.py
Created February 10, 2019 21:10 — forked from 8bit-pixies/changeslope.py
Interactive tkinter matlibplot example.
import Tkinter
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
class App:
def __init__(self, master):
# Create a container
frame = Tkinter.Frame(master)
# Create 2 buttons
self.button_left = Tkinter.Button(frame,text="< Decrease Slope",
@johntekdek
johntekdek / 01_Readme.md
Created April 19, 2018 21:37 — forked from Wildcarde/01_Readme.md
Quick demo embedding a Bokeh chart inside a Flask application

This works in a python 3.6 environment with bokeh and flask installed. To use this you need the following directory structure:

app/
 - templates/
   - hello.html
 - bokeh-slider.py
 - hello.py

After that you need to open two terminals at app/, in the first one you need to run the bokeh server with the command: