See the attached notebook in nbviewer
This file contains 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 jinja2 | |
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from sklearn.datasets import load_iris | |
import mpld3 | |
from mpld3 import plugins, utils |
This file contains 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
/********************************************************************** | |
I've been working with javascript for a bit, and I miss my | |
Python-style namespaces and class inheritance. Here's a little | |
pattern I came up with that allows me to do things (kind of) | |
the way I wish I could within javascript. I'd be curious if any | |
experienced JS users have comments or critiques. Thanks! | |
Edit - also see the second version (which I think is more clean) | |
below. | |
**********************************************************************/ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 mpld3 | |
import matplotlib.pyplot as plt | |
plt.plot(range(10)) | |
mpld3.show(template_type='simple', local=False) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer