question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No option to hide "Launch Tensorboard Session" that just appeared in my code.

See original GitHub issue

Environment data

Version: 1.54.2 Commit: fd6f3bce6709b121a895d042d343d71f317d74e7 Date: 2021-03-11T00:56:09.783Z Electron: 11.3.0 Chrome: 87.0.4280.141 Node.js: 12.18.3 V8: 8.7.220.31-electron.0 OS: Darwin x64 20.3.0

  • VS Code version: 1.54.2
  • Extension version (available under the Extensions sidebar): v2021.2.636928669
  • OS and version: ubuntu 20.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pyenv virtualenv
  • Relevant/affected Python packages and their versions: n/a
  • Relevant/affected Python-related VS Code extensions and their versions: n/a
  • Value of the python.languageServer setting: pylance

Expected behaviour

No extraneous text is inserted into my text editor.

Actual behaviour

Extraneous text (“Launch TensorBoard session”) is inserted into my text editor, with no way to hide it and disable this functionality. I have no desire to launch tensorboard from within my text editor and don’t want the message cluttering my text editor.

Steps to reproduce:

Insert a line with the contents from torch.utils.tensorboard import SummaryWriter image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kbrosecommented, Mar 15, 2021

Thank you @joyceerhl. I see there’s also a way to opt out of experiments altogether, so I went ahead and did that.

Maybe in the future new experiments could have a much more discoverable way to disable them? I rely on the auto-complete on the settings JSON page to find out what I can and can’t do with an extension, and the lack of python.[tensor] results led me to think there was no way to disable it. That’s my two cents at least.

1reaction
joyceerhlcommented, Mar 15, 2021

Thanks for the feedback @kbrose, you can opt out of the codelens feature by adding the following setting to your settings.json:

"python.experiments.optOutFrom": ["pythonTensorboardExperiment"]

/cc @jmew

Read more comments on GitHub >

github_iconTop Results From Across the Web

157 - What is TensorBoard and how to launch it in a browser?
TensorBoard can be very useful to view training model and loss/accuracy curves in a dashboard. This video explains the process of setting up ......
Read more >
Feature Launch: TensorBoard Support in Kaggle Kernels
Hi Kagglers, You can now use TensorBoard in Kaggle Kernels. TensorBoard makes it easier to understand, debug, and optimize TensorFlow models through intuitive ......
Read more >
VS Code Python TensorBoard integration doesn't work
The command palate command has two log directory options, "Use current working directory" and "Select another folder", but neither seem to work.
Read more >
TensorBoard Tutorial: Run Examples & Use Logdir - DataCamp
Learn how to use TensorBoard with our step-by-step tutorial. Find run examples and organize your data with multiple logdirs. Visualize your training ...
Read more >
5.3. Using TensorBoard in TensorFlow 2 on the IPU — Tutorials
Data that may be visualized includes, but is not limited to: Training losses and metrics. Images. Model graphs. Histograms/distributions of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found