iTorch!

OSX

Pickup dependencies:

brew tap caskroom/cask
brew cask install anaconda
brew install zeromq openssl
luarocks install luacrypto OPENSSL_DIR=/usr/local/opt/openssl/

Add to your shell if you use zsh:

echo "export PATH=\"$HOME/anaconda3/bin:$PATH\"" >> ~/.zshrc
source ~/.zshrc

Or if you use bash:

echo "export PATH=\"$HOME/anaconda3/bin:$PATH\"" >> ~/.bashrc
source ~/.bashrc

Now we can install Jupyter and iTorch

conda install jupyter
git clone https://github.com/facebook/iTorch.git
cd iTorch && luarocks make && popd

Hello World

Lets grab this great example:

wget https://raw.githubusercontent.com/facebook/iTorch/master/iTorch_Demo.ipynb

Finally, we can run iTorch

itorch notebook

This will launch a browser window with Jupyter’s Tree positioned at your local directory and you can open the iTorch_Demo.ipynb file and run it.itorch