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 collections import deque | |
import json | |
from tornado.ioloop import IOLoop | |
from tornado.httpclient import AsyncHTTPClient, HTTPRequest | |
from tornado import gen | |
bytes_buffer = deque() | |
messages = [] |
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 os | |
from dask.callbacks import Callback | |
from dask.dot import dot_graph | |
class Track(Callback): | |
def __init__(self, path='dasks'): | |
self.path = path | |
self.n = 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 numpy import linspace, sin | |
from pylab import plot, figure, show | |
def plotFunction(f): | |
""" Plot a function on the domain x in (-10, 10) """ | |
xs = linspace(-10, 10, 100) | |
ys = map(f, xs) | |
plot(xs, ys) | |
def derivative(f, dx=.00001): |