Skip to main content

KLayout API implementation of gdsfactory

Project description

kweb 0.1.1

KLayout Web Viewer demo

Based on https://github.com/klayoutmatthias/canvas2canvas

Install

Create a virtual enviroment venv

python -m venv venv

Activate the virtual enviroment

source venv/bin/activate

Clone the repository to your local

git clone https://github.com/gdsfactory/kweb.git

Install the necessary dependecies

cd /kweb

python -m pip install .

make install

Set a folder for kweb to use when looking for gds files

export KWEB_FILESLOCATION=/path/to/folder/with/file.gds

Run

cd src/kweb

make run

Copy the link http://127.0.0.1:8000/gds/file.gds (or http://localhost:8000/gds/file.gds also works) to your browser to open the waveguide example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kweb-1.0.0.tar.gz (421.6 kB view hashes)

Uploaded Source

Built Distribution

kweb-1.0.0-py3-none-any.whl (361.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page