Skip to content

Commit

Permalink
Set environment variable to allow TB profiler plugin to check if it i…
Browse files Browse the repository at this point in the history
…s running in VS Code (#15711)
  • Loading branch information
joyceerhl authored Mar 23, 2021
1 parent a71e546 commit 58df320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pythonFiles/tensorboard_launcher.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import time
import sys
import os
from tensorboard import default
from tensorboard import program


def main(logdir):
os.environ["VSCODE_TENSORBOARD_LAUNCH"] = "1"
tb = program.TensorBoard(
default.get_plugins(),
program.get_default_assets_zip_provider(),
Expand Down

0 comments on commit 58df320

Please sign in to comment.