You'll need 2 windows:
- A text editor or IDE (Visual Studio Code, Pycharm, Spyder, neovim, Atom, Jupyterlab ...)
- Klayout to Visualize the GDS files.
Component.show()
will stream the GDS to KLayout so KLayout needs to be open.
Make sure you also run gf install klayout-integration
from the terminal to install the gdsfactory
to klayout
interface.
- You write your PCells in python.
- You execute the python code.
- You visualize the GDS Layout in Klayout.
For building large pcells can use a file-watcher and see your updates in KLayout.
- You execute the file watcher
gf watch FolderName
or in the current working directorygf watch
- The file-watcher re-runs any python file
.py
or YAML.pic.yaml
. - Thanks to the
cell
cache you can see your new component changes live updating the layout in Klayout.