Can i install and use dolfin and fenicsx using ubuntu and jupyter?

Recently, I’ve tried to install Dolfin and FEniCSx using Ubuntu (I saw that I could do that on the internet), but actually, I need those packages to be imported in Jupyter. Now I know they are installed on my computer, but I can’t import them into the code I was developing. I don’t know if the packages only work with Conda or something… If someone could help me, I’d be grateful

How did you install jupyter on your computer (and what exact instructions did you use to install DOLFINx?)?

Jupyter was installed a long time ago, but it was from their website Project Jupyter | Installing Jupyter and I’m using the notebook (I also use Spyder for my code).
For DOLFINx i followed these instructions:

sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt update
sudo apt install fenicsx

And after that, I ran:
sudo apt install python3-dolfinx-complex