##Download using git
You can git clone
the library from Jake Vanderplas' GitHub repository: https://github.com/jakevdp/JSAnimation
git clone https://github.com/jakevdp/JSAnimation.git
##Download without git
try: | |
import pyaudio | |
import numpy as np | |
import pylab | |
import matplotlib.pyplot as plt | |
from scipy.io import wavfile | |
import time | |
import sys | |
import seaborn as sns | |
except: |
import numpy as np | |
import gym | |
import random | |
from collections import deque | |
from keras.layers import Input, Activation, Dense, Flatten, RepeatVector, Reshape | |
from keras.layers.convolutional import Conv2D | |
from keras.models import Model | |
from keras import backend as K |
# modified from https://gist.github.com/sorenbouma/6502fbf55ecdf988aa247ef7f60a9546 | |
import gym | |
import numpy as np | |
import matplotlib.pyplot as plt | |
env = gym.make('CartPole-v0') | |
env.render(close=True) | |
#vector of means(mu) and standard dev(sigma) for each paramater | |
mu=np.random.uniform(size=env.observation_space.shape) | |
sigma=np.random.uniform(low=0.001,size=env.observation_space.shape) |
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
# -*- coding: utf-8 -*- | |
""" | |
This demo is similar to Pyqtgraph remote plotting examples (https://github.com/pyqtgraph/pyqtgraph/blob/develop/examples/RemoteGraphicsView.py) | |
Except that it does not use Pyqtgraph's buggy multiprocess module. Instead, it relies on standard python 3+ multiprocessing (https://docs.python.org/3.5/library/multiprocessing.html). | |
In this example, function f is executed in a second process, which liberates immediately the main process. | |
""" | |
from pyqtgraph.Qt import QtGui, QtCore | |
import numpy as np | |
import pyqtgraph as pg | |
from multiprocessing import Process, Manager |
To export SVG from Google Slides. | |
1. Open Slide deck. | |
2. View -> 100% | |
3. Click on every thumbnail from first to last, this puts the SVG into the DOM. | |
4. Paste the export.js in the console. | |
5. Make sure to allow multiple downloads. | |
6. All SVG should be in Downloads folder. | |
Cheers, |
##Download using git
You can git clone
the library from Jake Vanderplas' GitHub repository: https://github.com/jakevdp/JSAnimation
git clone https://github.com/jakevdp/JSAnimation.git
##Download without git