I followed the steps from the Fenicsx website on installation using docker and it’s working in Jupyter Notebook(web). I can also use it in VS Code by selecting the Jupyter kernel(current address). However, I’m unable to add new libraries to it.
I asked ChatGPT for help, and it suggested installing Conda and then adding libraries like ParaView. I did that — the library shows up in the terminal, but when I run a script, it’s not recognized.
Also, when I rerun the container, all the Conda environments and libraries disappear. I’m currently doing a course, and my professor provided me with container files that are automatically configured in VS Code. However, the examples from the Fenicsx website don’t work with those containers.
My main questions are:
How can I properly add and keep libraries (like ParaView) when using containers?
How can I use Fenicsx efficiently with VS Code?
I’m not a programmer, but I have some basic experience in programming. Thank you!(I am using windows Os)
How do you start the docker container when you want to use it in vscode?
Usually, one would add a —name=name-of-my-container, so that next time you want to run code, you call docker container start -i name-of-my-container rather than docker run …
If you are using the dolfinx docker containers, don’t add conda to the mix.
I would keep Paraview outside the docker image, as it uses a GUI, which can be a hassle to get to work through docker. Paraview provide binaries on their webpage that you can use.