paraview + trame

I tried the paraview + trame example:

I got it working, but the steps on the website did not work for me.
In the tutorial, this step did not work for me:

–venv .pvenv

ModuleNotFoundError: No module named ‘trame’

But if I do this, the example works:

conda activate pv-env
python 05_paraview/ --port 1234

Not sure if this matters in practice?
Also not sure how to get it working by directly calling paraview’s pvpython.

The following worked for me

conda deactivate   # make sure I don't have a blend of conda and local venv
unset PV_VENV      # make sure I don't have a global venv set for ParaView 

git clone

python3.9 -m venv .venv
source .venv/bin/activate
pip install trame

/Applications/ ./trame/examples/07_paraview/SimpleCone/ --port 1234 --venv .venv

And the tutorial one worked for me too

git clone
/Applications/ ./trame-tutorial/05_paraview/ --port 1234 --venv .venv