This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

ipython notebook on a Mac with FEniCS.app

0 votes

I'm just starting to use FEniCS.app on the Mac, and would love to use it in ipython notebook mode. How can I do this? It would appear to require installing additional packages such as pyzmq.

scott@host-79524:~$ ipython notebook
ImportError: IPython.html requires pyzmq >= 2.1.11

asked Nov 27, 2014 by scbarton FEniCS Novice (190 points)

You can try easy_install pyzmq.

johannr, thanks, see answer below based on your comment.

1 Answer

+1 vote

Based on johannr's suggestion, after a little fiddling, I did get notebook to run. Based on this stack overflow question, I first installed pip, then uninstalled ipython, and reinstalled with the [all] option to include all dependencies.

Install pip:

$ easy_install --install-dir='/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages' pip
$ ln -s /Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/pip /Applications/FEniCS.app/Contents/Resources/bin/pip

Uninstall and reinstall ipython:

pip uninstall ipython
pip install --target='/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages' ipython[all]
answered Nov 28, 2014 by scbarton FEniCS Novice (190 points)
edited Jan 27, 2016 by scbarton

Is it possible to display plots, like mesh, solution, etc. within the notebook ?

Thanks, this is helpful

...