r/IPython • • Sep 15 '15

Portable MATLAB kernel? Prof requires MATLAB use, but I want to continue using Jupyter

The computers at my school are locked down so I use a USB-based portable IPython. Does anyone know if a portable MATLAB kernel exists?

The MATLAB kernel found here: https://github.com/calysto/matlab_kernel requires pip or setup.py to install. Is there a way to install this on to a USB?

Thanks for any advice.

7 Upvotes

3 comments sorted by

3

u/Ogi010 Sep 15 '15

I'm not sure if there is a way to install on a USB, but if you can expose your jupyter notebook (running at home) to the internet, you can access your notebook server remotely that way, so you don't have to mess w/ a bunch of configurations.

I'm sure there is a way to run off a USB stick though.

Ogi

2

u/NomadNella Sep 16 '15

If you download the zip file, extract all the contents, and from the commandline in that directory type,

python setup.py install

You should be able to install it on what ever machine you want, but as for having the kernel live on the USB... I think you would have to have a whole OS on the stick. A live CD image with IPython and the kernel installed would work but that would run really slow. Like Ogi said, there are probably other ways of doing it, but I don't know what they would be.

I'm going to be looking into setting up a server with docker images but not in time to be of any help to you this semester.

2

u/waspbr Sep 23 '15 edited Sep 24 '15

I have been using a jupyter server that I installed in a digitalOcean droplet. For 10 bucks (I found that the smaller $5 machine a bit tight and it requires a bit of trickery to compile pandas) I have access to my notebooks from any computer with an internet connection.

AFAIK, the matlab kernel requires matlab to be installed in the machine, which apparently can be done in X-headless server. so once you do that you may be able to link the matlab kernel to the matlab executable.

The alternative would be to install a linux disto on a USB and install jupyter and matlab in there.

gl