I am seeking advice on the installation for FEnICSx using conda and linking the environment to jupyter lab. Before this process I updated conda to the latest version. The steps I took for the installation and link for the kernel are as follows:
- conda create -n fenics -c conda-forge python=3.8 jupyter fenics-dolfinx mpich pyvista
- conda activate fenics
- python -m ipykernel install --user --name fenics --display-name “Python fenics”
- jupyter lab
Once I open jupyter lab and begin a new notebook I tried the command:
from dolfinx import *
I also tried these two commands:
from mpi4py import MPI
from dolfinx import mesh
When I run these commands the kernel restarts as in the picture below.
I have tried to link jupyter lab and the fenics conda environment many times now using multiple methods and am unsure where to go from here to successfully use jupyter lab. Any advice or help is much appreciated!