Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install viztracer ... #580

Open
thistlillo opened this issue Mar 31, 2025 · 1 comment
Open

Install viztracer ... #580

thistlillo opened this issue Mar 31, 2025 · 1 comment

Comments

@thistlillo
Copy link

thistlillo commented Mar 31, 2025

Preliminaries:

Working with

  • VSC Version: 1.98.2 (Universal)
    Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
    Date: 2025-03-12T13:32:45.399Z
    Electron: 34.2.0
    ElectronBuildId: 11161602
    Chromium: 132.0.6834.196
    Node.js: 20.18.2
    V8: 13.2.152.36-electron.0
    OS: Darwin x64 24.3.0

on a remote linux server

Linux hostname 5.15.0-130-generic #140~20.04.1-Ubuntu SMP Wed Dec 18 21:35:34 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

  • the Remote-ssh extension 0.118.0.

  • Viztracer VSC extension 0.3.0

In the Python environment of the project I would like to use VizTracer on, I installed:
viztracer==1.0.3

I ran
viztracer myron.py
and have the results.json file.

Now, when I right click on results.json and click on View with VizTracer, VSC shows a window in the bottom right corner, saying Please install VizTracer to view the report (see screenshot).

Doe the error depend on the fact I am working remotely? If it can work, are there instructions to set it up?

Image
@gaogaotiantian
Copy link
Owner

The VSCode plugin of VizTracer relies on the VSCode Python environment - note it's not the environment of your terminal. On your bottom-right corner of VSCode, there should be a python version VSCode uses for its Python extension - make sure that matches your working environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants