by happy-go-lucky · 9y ago · 0 comments
Would be interested how one would manage to include a jupyter scratchpad in the online version?
Temporary notebook service: https://github.com/jupyter/tmpnb
Jupyter javascript plugin for static sites: https://github.com/oreillymedia/thebe
Also, you may want to consider trinket: https://trinket.io/
http://www.hnwatcher.com/r/984396/Embed-interactive-Python-a...
For example, this book uses trinket for interactive Python: https://books.trinket.io/pfe/index.html
I've just tried running:
import numpy as np
from scipy import linalg
A = np.array([[1,2],[3,4]])
print(linalg.det(A))
at https://trinket.io/features/python3 and it worked like a charm :)