Skip to content

output of print_* functions not visible in notebook #440

@Voxelworld

Description

@Voxelworld

When using PyMeshLab in a VS Code notebook the output of all print_* functions is not visible.
It works fine using it with Python in a console window.

I couldn't find the output in any of VS output windows ("Python", "Jupyter") either. Is there a trick to make the output visible?

You are using std::cout in your print functions like printVersion.
I'm not a pybind11 expert, but perhaps you can use the pybind::print function or redirect std::cout to sys.stdout as described in the documentation?

Tested env:

  • PyMeshLab 2025.7 based on MeshLab 2025.07d
  • Python 3.10.18,
  • VS Code 1.103.1 (Windows 11) using Jupyter extension 2025.7.0

Thank you very much for your work!

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