An example library of PCells importable in klayout.
2022-10-25 23:47:48.515 | INFO     | gdsfactory.config:<module>:52 - Load '/opt/conda/lib/python3.8/site-packages/gdsfactory' 5.38.1

rectangle object at 0x7f8c001be310>[source]

rectangle object at 0x7f8c001be310>()

a rectangle PCell.
rectangle()
Bokeh Application

square object at 0x7f8be4d28220>[source]

square object at 0x7f8be4d28220>()

a square PCell.
square()
Bokeh Application
display(mzi())
display(bend_euler())
mzi: uid 85e184de, ports ['o1', 'o2'], references ['cp1', 'cp2', 'bend_euler_1', 'syl', 'bend_euler_2', 'sxb', 'bend_euler_3', 'sytl', 'bend_euler_4', 'sxt', 'bend_euler_5', 'bend_euler_6', 'straight_5', 'straight_6', 'straight_7', 'bend_euler_7', 'bend_euler_8', 'straight_8', 'straight_9', 'straight_10'], 0 polygons
bend_euler: uid ff710304, ports ['o1', 'o2'], references [], 4 polygons

Library

example_lib = fl.library(
    "F. E. L.",
    pcells=[rectangle, square, *gf_pcells],
    cells=[],
    description="FLayout Example Library",
)