Install Windows subsystem of Linux by opening the system prompt in administrative mode and type:
wsl –install
Follow instructions here to install miniconda:
https://dev.to/sfpear/miniconda-in-wsl-3642
Create the folder for meep files:
cd ~
makedir meep
cd meep
Create environment for meep and install jupyter notebook for visualization:
conda create -n meep -c conda-forge pymeep pymeep-extras
pip install jupyter
Activate the local environment and try the packages:
conda activate meep
python3
import meep
If you get an error like below:
import meep
Traceback (most recent call last):
File “”, line 1, in
File “/home/charey/miniconda3/envs/meep/lib/python3.11/site-packages/meep/init.py”, line 10, in
from . import _meep
ImportError: libmkl_rt.so.2: cannot open shared object file: No such file or directory
Quit Python by quit() and use:
pip install mkl
Open jupyter notebook by
jupyter notebook
And copy the localhost… address to a local web browser to use jupyter notebook for visualization.