{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "The ipython notebook environment is a superb environment for empirical research. Sometimes, though, you would like to access the capabilities of other software. This post shows how to incorporate R and Matlab into ipython notebooks.\n", "\n", "" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge\n", "Send 'exit' command to kill the server\n", ".MATLAB started and connected!\n" ] } ], "source": [ "%matplotlib inline\n", "%load_ext rmagic \n", "%load_ext pymatbridge" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | x | \n", "y | \n", "
---|---|---|
0 | \n", "0.376486 | \n", "0.383480 | \n", "
1 | \n", "0.717613 | \n", "0.810156 | \n", "
2 | \n", "0.158627 | \n", "0.334782 | \n", "
3 | \n", "0.899574 | \n", "0.005522 | \n", "
4 | \n", "0.092767 | \n", "0.055730 | \n", "