Reputation: 29
I'm trying to run tensorboard but it keeps showing the same error.
tensorboard --logdir=tensorflow/logdir
File "<stdin>", line 1
SyntaxError: can't assign to operator
I'm using Ubuntu 16.04 and installed tensorflow-gpu by virtualenv.
Upvotes: 2
Views: 6158
Reputation: 1
if you are using jupeter notebook or jupyter lab or google colab you should use the code:
%load_ext tensorboard
%tensorboard --logdir="logs"
if you are coding in terminal
tensorboard --logdir="logs"
this code will work well
Upvotes: 0
Reputation: 7869
You are running tensorboard --logdir=tensorflow/logdir
from an interactive python shell or ipython/jupyter-notebook. As mentioned in the comment above, you need to run this command from the terminal. Alternatively, you can run the command from ipython/jupyter by putting the !
at the beginning of the command, i.e by running !tensorboard --logdir=tensorflow/logdir
Upvotes: 7