Packages¶
You can install one of the packages provided by FEM on Colab by adding the following cell at the top of your notebook.
![](_static/images/fenics-logo.png)
FEniCS
try:
import dolfin
except ImportError:
!wget "https://fem-on-colab.github.io/releases/fenics-install-real.sh" -O "/tmp/fenics-install.sh" && bash "/tmp/fenics-install.sh"
import dolfin
![](_static/images/fenics-logo.png)
FEniCSx
try:
import dolfinx
except ImportError:
!wget "https://fem-on-colab.github.io/releases/fenicsx-install-real.sh" -O "/tmp/fenicsx-install.sh" && bash "/tmp/fenicsx-install.sh"
import dolfinx
try:
import dolfinx
except ImportError:
!wget "https://fem-on-colab.github.io/releases/fenicsx-install-complex.sh" -O "/tmp/fenicsx-install.sh" && bash "/tmp/fenicsx-install.sh"
import dolfinx
![](_static/images/firedrake-logo.png)
firedrake
try:
import firedrake
except ImportError:
!wget "https://fem-on-colab.github.io/releases/firedrake-install-real.sh" -O "/tmp/firedrake-install.sh" && bash "/tmp/firedrake-install.sh"
import firedrake
try:
import firedrake
except ImportError:
!wget "https://fem-on-colab.github.io/releases/firedrake-install-complex.sh" -O "/tmp/firedrake-install.sh" && bash "/tmp/firedrake-install.sh"
import firedrake
![](_static/images/gmsh-logo.png)
gmsh
try:
import gmsh
except ImportError:
!wget "https://fem-on-colab.github.io/releases/gmsh-install.sh" -O "/tmp/gmsh-install.sh" && bash "/tmp/gmsh-install.sh"
import gmsh
![](_static/images/ngsolve-logo.png)
netgen, ngsolve, ngsxfem & ngsPETSc
try:
import ngsolve
except ImportError:
!wget "https://fem-on-colab.github.io/releases/ngsolve-install-real.sh" -O "/tmp/ngsolve-install.sh" && bash "/tmp/ngsolve-install.sh"
import ngsolve
try:
import ngsolve
except ImportError:
!wget "https://fem-on-colab.github.io/releases/ngsolve-install-complex.sh" -O "/tmp/ngsolve-install.sh" && bash "/tmp/ngsolve-install.sh"
import ngsolve
A complete list of all dependencies is reported below. Users should typically not install any such dependency, since FEM on Colab automatically downloads and installs any required dependency of the aforementioned packages.
![](_static/images/boost-logo.png)
Boost
!wget "https://fem-on-colab.github.io/releases/boost-install.sh" -O "/tmp/boost-install.sh" && bash "/tmp/boost-install.sh"
![](_static/images/gcc-logo.png)
GCC
!wget "https://fem-on-colab.github.io/releases/gcc-install.sh" -O "/tmp/gcc-install.sh" && bash "/tmp/gcc-install.sh"
![](_static/images/h5py-logo.png)
HDF5 & h5py
!wget "https://fem-on-colab.github.io/releases/h5py-install.sh" -O "/tmp/h5py-install.sh" && bash "/tmp/h5py-install.sh"
import h5py
![](_static/images/mock-logo.png)
Mock package
!wget "https://fem-on-colab.github.io/releases/mock-install.sh" -O "/tmp/mock-install.sh" && bash "/tmp/mock-install.sh"
import mock
![](_static/images/mpi4py-logo.png)
openmpi & mpi4py
try:
import mpi4py
except ImportError:
!wget "https://fem-on-colab.github.io/releases/mpi4py-install.sh" -O "/tmp/mpi4py-install.sh" && bash "/tmp/mpi4py-install.sh"
import mpi4py
![](_static/images/occ-logo.png)
Open CASCADE Technology
!wget "https://fem-on-colab.github.io/releases/occ-install.sh" -O "/tmp/occ-install.sh" && bash "/tmp/occ-install.sh"
![](_static/images/petsc4py-logo.png)
PETSc & petsc4py
try:
import petsc4py
except ImportError:
!wget "https://fem-on-colab.github.io/releases/petsc4py-install-real.sh" -O "/tmp/petsc4py-install.sh" && bash "/tmp/petsc4py-install.sh"
import petsc4py
try:
import petsc4py
except ImportError:
!wget "https://fem-on-colab.github.io/releases/petsc4py-install-complex.sh" -O "/tmp/petsc4py-install.sh" && bash "/tmp/petsc4py-install.sh"
import petsc4py
![](_static/images/pybind11-logo.png)
pybind11 & nanobind
!wget "https://fem-on-colab.github.io/releases/pybind11-install.sh" -O "/tmp/pybind11-install.sh" && bash "/tmp/pybind11-install.sh"
import pybind11
![](_static/images/slepc4py-logo.png)
SLEPc & slepc4py
try:
import slepc4py
except ImportError:
!wget "https://fem-on-colab.github.io/releases/slepc4py-install-real.sh" -O "/tmp/slepc4py-install.sh" && bash "/tmp/slepc4py-install.sh"
import slepc4py
try:
import slepc4py
except ImportError:
!wget "https://fem-on-colab.github.io/releases/slepc4py-install-complex.sh" -O "/tmp/slepc4py-install.sh" && bash "/tmp/slepc4py-install.sh"
import slepc4py
![](_static/images/vtk-logo.png)
VTK & pyvista
try:
import vtk
except ImportError:
!wget "https://fem-on-colab.github.io/releases/vtk-install.sh" -O "/tmp/vtk-install.sh" && bash "/tmp/vtk-install.sh"
import vtk
For convenience, text files containing links to all FEM on Colab tests can be downloaded below: