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.

Feature request: extend scope of `"python.tensorBoard.logDirectory"` and/or support variable substitution

See original GitHub issue

TLDR: "python.tensorBoard.logDirectory" is user-level only and does not seem to support variable substitution which, especially in combination, makes it very hard to use productively.

I would love to add my thoughts to https://github.com/microsoft/vscode-python/discussions/16073 or https://github.com/microsoft/vscode-python/issues/17222, but I missed them over the fall and now they are both closed.

My main argument is that not only should "python.tensorBoard.logDirectory" be a workspace setting, but also that it makes little sense as a user setting at all - should it remain a user setting, I would be surprised if many people successfully used it who are using more than one workspace. This is because the TensorBoard log dir is set

  1. either relatively, so it depends on the current working directory,
  2. or absolutely, so it has be fully defined set in the workspace code.

The problem with 1. is obvious - even the same code, run in two different workspaces, will produce two different directories. This could be taken care of by variable substition, such as "python.tensorBoard.logDirectory": "${workspaceFolder}/results/tensorboard", but I seem to be unable to pull this off: image

It seems like “Visual Studio Code supports variable substitution in … some select settings” does not include this setting.

The problem with 2 is that, if your workspace code (the writer) uses a fixed TensorBoard logdir location, you have no way of ensuring (in the workspace) that the effective VS Code setting (the reader) is in sync with that. I am not sure defining a workspace-level launch configuration (for the writer) pulling in a user-level logdir location setting is very popular…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andreamahcommented, Nov 30, 2022

are there some verification steps that we can follow to make sure that this is resolved?

0reactions
evanphilipcommented, Oct 27, 2022

The fork from @PillarsZhang wouldn’t merge easily, so I implemented the same fix on a new fork and created pull request 20103 .

Sorry about the spam here; my experience is limited to Git

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fundamentals of Deep Learning
This book uses exposition and examples to help you understand major concepts in this complicated field. Large companies such as Google, Microsoft, and...
Read more >
Extension types | TensorFlow Core
To create an extension type, simply define a Python class with tf.experimental.ExtensionType as its base, and use type annotations to specify the type...
Read more >
reading-notes | 张俊的读书笔记 - GitHub Pages
When we call tf.Variable , three operations are added to the computation graph: The operation producing the tensor we use to initialize our...
Read more >
Untitled
... IPy-1.01.tar.gz python-IPy.spec CVE-2018-16329.patch CVE-2019-18853.patch ... backport-Bash-5.1-patch-3-fix-command-substitution-in-here-do.patch ...
Read more >
2m-subdomains.txt
... Data webapp 3party upload desktop base TMessagesProj features protected ... ash help google C submodules daemon SampleVideos sass-cache shared Python ...
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