Sunday, March 3, 2013

iPython Notebook + raspberry pi + minecraft api

using iPython notebook with the raspberry pi minecraft api for quick experiments.

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.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()

print mc.player.getPos()
mc.postToChat("hello from iPython")




No comments: