diff --git a/src/kfactory/kcell.py b/src/kfactory/kcell.py index 9b72762c..4f00b07c 100644 --- a/src/kfactory/kcell.py +++ b/src/kfactory/kcell.py @@ -7568,6 +7568,7 @@ def show( and not the main KCLayout. """ import inspect + import tempfile delete = False delete_lyrdb = False @@ -7577,11 +7578,14 @@ def show( try: stk = inspect.getouterframes(inspect.currentframe()) frame = stk[2] - name = ( - Path(frame.filename).stem + "_" + frame.function - if frame.function != "" - else Path(frame.filename).stem - ) + frame_filename_stem = Path(frame.filename).stem + if frame_filename_stem.startswith("