Skip to content

OCP demo file is shown instead of target file until first save or %r magic #7

Description

@phansel

OS: Linux 7.0.5, x11
python: 3.13 (venv)
browser: Firefox 150.0.2

Installed filewatcher123d:

$ git clone https://github.com/jdegenstein/filewatcher123d.git
$ cd filewatcher123d
$ uv venv --python 3.13
$ source .venv/bin/activate
(venv) $ uv pip install .

Created a file basic.py with the following contents:

from build123d import *
from ocp_vscode import *

length, width, thickness = 80.0, 60.0, 10.0

with BuildPart() as ex1:
    Box(length, width, thickness)
    Box(length, width, thickness)

show_all()

The first time fw123d is launched with fw123d basic.py, nothing is rendered other than the OCP logo:

Image

When the file is changed the first time (e.g. adding a space) and re-saved, or when %r magic is run in the terminal, it does finally render:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions