# Dolfinx in plain Jupyter notebook: No module named 'dolfinx'

**URL:** <https://fenicsproject.discourse.group/t/dolfinx-in-plain-jupyter-notebook-no-module-named-dolfinx/13899>\
**Category:** installation\
**Created:** [March 13, 2024, 12:53pm UTC](https://fenicsproject.discourse.group/t/dolfinx-in-plain-jupyter-notebook-no-module-named-dolfinx/13899 "2024-03-13T12:53:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marchirschvogel](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/marchirschvogel/32/1138_2.png) [@marchirschvogel](https://fenicsproject.discourse.group/u/marchirschvogel)\
**Post date:** [March 13, 2024, 12:53pm UTC](https://fenicsproject.discourse.group/t/dolfinx-in-plain-jupyter-notebook-no-module-named-dolfinx/13899/1 "2024-03-13T12:53:15Z")

</div>

Hello community,

I’m trying to run dolfinx in a plain Jupyter notebook on Google colab.

Installation successfully completes, using:

```auto
!add-apt-repository ppa:fenics-packages/fenics -y
!apt update && apt install fenicsx

```

Imports also work fine, except the last line of the following

```auto
import ufl, ffcx, basix
from mpi4py import MPI
import sys
print(sys.path)
import dolfinx

```

yields the error  
**ModuleNotFoundError: No module named ‘dolfinx’**.

Is there something I’m missing? Especially since all the other packages (ufl, ffcx, basix) seem to have been installed correctly.

The print of sys.path yields  
`['/content', '/env/python', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages', '/usr/local/lib/python3.10/dist-packages/IPython/extensions', '/root/.ipython']`.

Thanks.

Best,  
Marc

---

<div class="post-metadata">

**Author:** ![francesco-ballarin](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@francesco-ballarin](https://fenicsproject.discourse.group/u/francesco-ballarin)\
**Post date:** [March 13, 2024, 2:11pm UTC](https://fenicsproject.discourse.group/t/dolfinx-in-plain-jupyter-notebook-no-module-named-dolfinx/13899/2 "2024-03-13T14:11:09Z")

</div>

See [https://fem-on-colab.github.io/](https://fem-on-colab.github.io/)
