Skip to content

Notebook cell fails wtih .show() cannot connect to klive server #39

@discdiver

Description

@discdiver

4_circuit_optimization.ipynb

c.show()

10:25:56 | WARNING  | Could not connect to klive server
10:25:56 | INFO     | Loading KCL from file.
10:25:56 | INFO     | len(gf.kcl.tkcells)=594 TKCells in KCL
[/var/folders/kq/dyn3s1hn6ln1cd88hsm1hmmm0000gn/T/ipykernel_35587/4020511028.py:1](https://file+.vscode-resource.vscode-cdn.net/var/folders/kq/dyn3s1hn6ln1cd88hsm1hmmm0000gn/T/ipykernel_35587/4020511028.py:1): UserWarning: Object has been destroyed already in Cell.called_cells
  c.show()

Then the next cell fails, but will generate the 3d rendering if rererunning after redefining c by rerunning cell above.

s = c.to_3d()
s.show()

uv pip list results on mac with python 3.12

absl-py                   2.2.2
aenum                     3.1.16
altair                    5.5.0
annotated-types           0.7.0
anyio                     4.9.0
appnope                   0.1.4
arrow                     1.3.0
asttokens                 3.0.0
attrs                     25.3.0
autograd                  1.8.0
binaryornot               0.4.4
bokeh                     3.7.3
boto3                     1.38.14
botocore                  1.38.14
cachetools                5.5.2
certifi                   2025.4.26
cfgv                      3.4.0
chardet                   5.2.0
charset-normalizer        3.4.2
chex                      0.1.89
click                     8.2.0
cloudpickle               3.1.1
colorlog                  6.9.0
comm                      0.2.2
contourpy                 1.3.2
cookiecutter              2.6.0
cspdk                     1.0.7
cycler                    0.12.1
dask                      2025.4.1
debugpy                   1.8.14
decorator                 5.2.1
deepdiff                  8.5.0
distlib                   0.3.9
doroutes                  0.2.0
doweb                     1.4.1
etils                     1.12.2
executing                 2.2.0
fastapi                   0.115.12
femwell                   0.1.12
filelock                  3.18.0
flax                      0.10.4
flexcache                 0.3
flexparser                0.4
fonttools                 4.58.0
freetype-py               2.5.1
fsspec                    2025.3.2
gdsfactory                9.11.6
gdsfactoryplus            0.57.9
gdstk                     0.9.60
gitdb                     4.0.12
gitpython                 3.1.44
gmsh                      4.13.1
gplugins                  1.4.2
granian                   2.2.6
graphviz                  0.20.3
gunicorn                  23.0.0
h11                       0.16.0
h5netcdf                  1.0.2
h5py                      3.13.0
httpcore                  1.0.9
httptools                 0.6.4
httpx                     0.28.1
humanize                  4.12.3
identify                  2.6.10
idna                      3.10
imageio                   2.37.0
importlib-metadata        8.7.0
importlib-resources       6.5.2
iniconfig                 2.1.0
ipyevents                 2.0.2
ipykernel                 6.29.5
ipython                   9.2.0
ipython-pygments-lexers   1.1.1
ipytree                   0.2.2
ipywidgets                8.1.7
jax                       0.7.0
jaxlib                    0.7.0
jaxtyping                 0.3.2
jedi                      0.19.2
jinja2                    3.1.6
jmespath                  1.0.1
joblib                    1.5.0
jsonschema                4.23.0
jsonschema-specifications 2025.4.1
jupyter-client            8.6.3
jupyter-core              5.7.2
jupyterlab-widgets        3.0.15
kfactory                  1.10.1
kiwisolver                1.4.8
klayout                   0.30.1
klujax                    0.4.1
lark                      1.2.2
lazy-loader               0.4
locket                    1.0.0
loguru                    0.7.3
lxml                      5.4.0
manifold3d                3.0.1
mapbox-earcut             1.0.3
markdown-it-py            3.0.0
markupsafe                3.0.2
matplotlib                3.10.3
matplotlib-inline         0.1.7
mdurl                     0.1.2
meow-sim                  0.14.1
meshio                    5.3.5
meshwell                  1.0.9
ml-dtypes                 0.5.1
mpmath                    1.3.0
msgpack                   1.1.0
mycspdk                   0.0.0           /Users/jeffhale/Desktop/gdsfactory_sample_project-main 2
narwhals                  1.39.0
natsort                   8.4.0
nest-asyncio              1.6.0
networkx                  3.4.2
nodeenv                   1.9.1
numpy                     2.2.0
opt-einsum                3.4.0
optax                     0.2.4
orbax-checkpoint          0.11.13
orderly-set               5.4.1
orjson                    3.10.18
packaging                 25.0
pandas                    2.2.3
parso                     0.8.4
partd                     1.4.2
pexpect                   4.9.0
pillow                    11.2.1
pint                      0.24.4
pip                       25.2
pip-system-certs          5.2
platformdirs              4.3.8
pluggy                    1.5.0
pre-commit                4.2.0
prompt-toolkit            3.0.51
protobuf                  4.25.7
psutil                    7.0.0
ptyprocess                0.7.0
pure-eval                 0.2.3
pyarrow                   21.0.0
pycollada                 0.9
pydantic                  2.11.4
pydantic-core             2.33.2
pydantic-extra-types      2.10.4
pydantic-settings         2.9.1
pyglet                    2.1.6
pygments                  2.19.1
pygmsh                    7.1.17
pyjwt                     2.10.1
pyparsing                 3.2.3
pyright                   1.1.400
pyroots                   0.5.0
pytest                    8.3.5
python-dateutil           2.9.0.post0
python-dotenv             1.1.0
python-slugify            8.0.4
pytz                      2025.2
pyyaml                    6.0.2
pyzmq                     26.4.0
qrcode                    8.2
rectangle-packer          2.0.4
rectpack                  0.2.2
referencing               0.36.2
requests                  2.32.3
responses                 0.25.7
rich                      13.9.4
rpds-py                   0.24.0
rtree                     1.4.0
ruamel-yaml               0.18.10
ruamel-yaml-clib          0.2.12
ruamel-yaml-string        0.1.1
ruff                      0.11.9
s3transfer                0.12.0
sax                       0.15.14
scikit-fem                11.0.0
scikit-image              0.25.2
scikit-learn              1.6.1
scikit-rf                 1.8.0
scipy                     1.15.3
setuptools                80.4.0
shapely                   2.1.0
shellingham               1.5.4
simplejson                3.20.1
six                       1.17.0
smmap                     5.0.2
sniffio                   1.3.1
stack-data                0.6.3
starlette                 0.46.2
svg-path                  6.3
sympy                     1.14.0
tensorstore               0.1.74
text-unidecode            1.3
threadpoolctl             3.6.0
tidy3d                    2.8.3
tifffile                  2025.5.10
toml                      0.10.2
tomli                     2.2.1
toolz                     1.0.0
tornado                   6.4.2
tqdm                      4.67.1
traitlets                 5.14.3
treescope                 0.1.9
trimesh                   4.6.8
typer                     0.16.1
types-python-dateutil     2.9.0.20241206
types-pyyaml              6.0.12.20250402
typing-extensions         4.13.2
typing-inspection         0.4.0
tzdata                    2025.2
urllib3                   2.4.0
uv                        0.7.3
uvicorn                   0.34.2
uvloop                    0.21.0
vhacdx                    0.0.8.post2
virtualenv                20.31.2
vlsir                     7.0.0
vlsirtools                7.0.0
wadler-lindig             0.1.5
watchdog                  6.0.0
watchfiles                1.0.5
wcwidth                   0.2.13
websocket-client          1.8.0
websockets                15.0.1
widgetsnbextension        4.0.14
xarray                    2025.7.1
xxhash                    3.5.0
xyzservices               2025.4.0
zipp                      3.21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions