It makes you able to preview and make matplotlib inline in Calysto_hy
in your Jupyter and any viewers.
curl -O https://gist.githubusercontent.com/anosatsuk124/4e7acba63f322586afe18e9b2063d5f7/raw/70c00d6a31c86942c239519df1eff9e175a58492/matplotlib_inline.hy
or
wget https://gist.githubusercontent.com/anosatsuk124/4e7acba63f322586afe18e9b2063d5f7/raw/70c00d6a31c86942c239519df1eff9e175a58492/matplotlib_inline.hy
(import [matplotlib_inline [show]]
[matplotlib.pyplot :as plt]
[numpy :as np]
)
(setv fig (plt.figure))
(setv ax (fig.add_subplot 111))
(setv y (+ (* 2 x) 1))
(.plot ax x y)
(show fig)
(import [matplotlib_inline [show]]
[matplotlib.pyplot :as plt]
[numpy :as np]
)
(setv fig (plt.figure))
(setv ax (fig.add_subplot 111))
(setv y (+ (* 2 x) 1))
(.plot ax x y)
(show fig "png")