Jarvis Documentation: Release 0.1.2
Jarvis Documentation: Release 0.1.2
Release 0.1.2
Francois Lagunas
Contents
Demo Video
Inspiration
Installing
Full Content
4.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Jarvis emacs bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
9
10
ii
Jarvis is a Python coding companion. Point it to a python function, and it will execute it. As soon as you change and
save your code, Jarvis will detect it, and will rerun the function.
If an exception is raised, it will be displayed in the error panel.
If you insert some debugging statements in your code, they will be displayed in the debug panel.
Last, but not least, if you are using OpenSceneGraph Python bindings, you will be able to output an OSG tree to the
Jarvis interface. This way, you can instantly see the new 3D scene your code is generating.
Contents
Contents
CHAPTER 1
Demo Video
You can have a better description and a demo video on the Jarvis Front Page.
CHAPTER 2
Inspiration
Jarvis was inspired by works of Bret Victor, especially his talk Inventing on Principle .
The central idea is that the feedback loop when you are coding should be the shortest possible, so you can see the
effect of your code changes instantly, or almost. Jarvis implements a (small) subset of these ideas.
Those ideas are also used in the Light Table KickStarter project.
Chapter 2. Inspiration
CHAPTER 3
Installing
Chapter 3. Installing
CHAPTER 4
Full Content
4.1 Commands
Jarvis commands are available through the jarvis.commands module.
from jarvis.commands import debug, debug_xml
def main():
a = "Hello World !"
debug(a)
suite = unittest.TestLoader().loadTestsFromTestCase(TestMyModule)
suite = filter(lambda x : str(x).startswith(filt), suite)
suite = unittest.TestLoader().suiteClass(suite)
result = unittest.TextTestRunner(verbosity=2).run(suite)
# Show the test_unit in jarvis
testunit_result(result)
reset_start_time():
Used to reset the timer used to time debug displays
The first line tell pymacs to load jarvis.emacs and then to prefix the jarvis command with j- . You can change that,
but I will assume that you are using this prefix below.
So, all the commands below will appear prefixed by j- , you will be able to see them using by typing M-x j- TAB in
emacs once everything is installed correctly.
10
4.2.4 Misc
test_create This will create a test file, given the current python file. It will look for a tests directory somewhere, or
will ask for one if not found.
google Ask for a query then open a browser with google search.
11
12
Index
A
add_watch_file() (built-in function), 10
13