Hello, I have installed openMC to windows by WSL and running it in terminal with command python3. How can i start running openMC in Jupyter notebook? Help me please
Launch your Jupyter notebook from the command line on WSL. When the server starts up, you will see something similar to the following:
[C 10:59:53.565 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/umarov/.local/share/jupyter/runtime/nbserver-6047-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=asdfqwertyuiop
or http://127.0.0.1:8888/?token=asdfqwertyuiop
Then, copy-paste one of the URLs into your browser on Windows, and you will be able to run OpenMC in Jupyter.
I am doing the same, but I think its opening windows Jupyter notebook, becouse it can not import openMC by command
There are at least two ways you can use openmc by API (jupyter notebook) when you are using WSL under windows:
- The first one, consist to install a linux desktop on your linux WSL (by means of an Xserver application: xming) and then you can have your linux interface as a window on your windows system, then you can launch your jupyter editor (web-browser) to use openmc
the second one, which I discovered recently, is to use an option with VSCODE (which is by the way a powerfull editor supporting notebook too) and then you connect it to your wsl machine, which will allow you to use your python with openmc environnement: this means that you will be able to execute openmc with your vscode editor under windows
I hope that could help you to find the best way to do it
Best regards
Salah
VSCODE works perfectly, thank you!
Iām very happy that could help.
Good luck for the rest