Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-klayoutNew to Visual Studio Code? Get it now.
vscode-klayout

vscode-klayout

zhaouv

|
3 installs
| (0) | Free
submit script to klayout python ide from vscode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-klayout

在vscode中往klayout的python ide提交运行脚本

启发自 https://github.com/gdsfactory/klive

在klayout中运行一个server, 在vscode中通过网络通信提交脚本

使用

前置: 在klayout python ide中运行 kernel.py 启动server. 设置自动启动见## 自动启动

鼠标右键后点submit selected content或submit current file

可以为它们绑定快捷键, 在键盘快捷方式(Ctrk+K Ctrl+S)中搜索submit可以找到这两个命令并添加

结果以及报错会打印在输出(Ctrl+Shift+U) 的 Server一栏中

设置

搜索targetUrl可以指定klayout的服务地址. 默认是http://127.0.0.1:12082/exec

自动启动server

打开目录%userprofile%\KLayout\salt, 解压 kernel.zip

此时该目录结构类似如下

    |-- salt/
        |-- kernel/
            |-- grain.xml
            |-- pymacros/
                |-- kernel.lym
            |-- python/
                |-- kernel.py
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft