Whenever I try to run tensorboard in a jupyter notebook within visual studio code with this command tensorbard --logdir=runs
, I get the message Launching TensorBoard...
. However, Tensorboard never launches. Sometimes I also get an error message.
Any ideas on how to launch tensorboard within vscode?
EDIT:
I also tried running slightly optimized commands
%load_ext tensorboard
%tensorboard --logdir runs
but this only shows the message Launching Tensorboard...
eternally.
Same result with
%reload_ext tensorboard
%tensorboard --logdir runs --host localhost --port 8888
Is there any tensorboard extension that embeds tensorboard into a cell output?
If you want something mature, specific, and well-configured for Python, then PyCharm is the way to go. However, if you prefer something lightweight that provides the freedom to customize, then VS Code is preferable. Both are great tools that can serve different purposes, depending on how you choose to use them.
Command Palette# VS Code is equally accessible from the keyboard. The most important key combination to know is Ctrl+Shift+P, which brings up the Command Palette. From here, you have access to all of the functionality of VS Code, including keyboard shortcuts for the most common operations.
You can use this
tensorboard --logdir=data/ --host localhost --port 8888
VS Code and the Python extension now has TensorBoard integrated in it in its latest release!
https://devblogs.microsoft.com/python/python-in-visual-studio-code-february-2021-release/
To start a TensorBoard session from VSC:
VSCode will then open a new tab with TensorBoard and its lifecycle will be managed by VS Code as well. This means that to kill the TensorBoard process all you have to do is close the TensorBoard tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With