forked from ten10solutions/Geist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prereq.py
32 lines (23 loc) · 755 Bytes
/
prereq.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Run this script with ipython -i prereq.py
This starts ipython in interactive mode.
Use the viewer object to capture images and test finders in an interactive ipython
"""
try:
get_ipython().magic(u'pylab')
except (NameError,):
pass
from geist.backends import get_platform_backend
from geist import (
GUI,
DirectoryRepo,
)
from geist.pyplot import Viewer
# Mark the directory listed as the current image repository
repo = DirectoryRepo("C:\some_filepath") # <--------------- EDIT ME!!!!!!!!!!!!!!!
# Start a Geist backend, takes an optional screen number to capture.
backend = get_platform_backend()
# Start a Geist GUI
gui = GUI(backend)
# Viewer object can be used to display results in image form
viewer = Viewer(gui, repo)