using a second x86 linux machine that hosts iPython, running Fedora 18, default iPython install.
- copy or unpack the api/python directory
- modify the minecraft.py : change 'localhost' to the ip address of your raspberry pi
- start notebook from api/python directory (for import commands to match samples on the web)
ipython notebook --pylab inline
then you have
import mcpi.block as block
mc = minecraft.Minecraft.create()
print mc.player.getPos()
mc.postToChat("hello from iPython")
No comments:
Post a Comment