This requires Jupyter Notebook http://jupyter.readthedocs.org/en/latest/install.html and PsySH installed.
To install:
pip install psysh_kernel
python -m psysh_kernel.install
To use it, run one of:
ipython notebook
# In the notebook interface, select Psysh from the 'New' menu
ipython qtconsole --kernel psysh
ipython console --kernel psysh
This is based on MetaKernel http://pypi.python.org/pypi/metakernel which means it features a standard set of magics.
A sample notebook is available online.
You can specify the path to your Psysh executable by creating an
PSYSH_EXECUTABLE
environmental variable.
Thanks to the metakernel project (https://github.com/Calysto/metakernel) and it's contributers.