Issue
I've got TensorFlow installed on my machine however I'm keep getting the error: UsageError: Line magic function `%tensorflow_version` not found.
Any ideas as to why this is? The code I ran is below (Jupyter Notebook)
%tensorflow_version 1.x
import tensorflow as tf
print(tf.__version__)
Solution
Jupyter notebook comes with a set of magic functions, but %tensorflow_version
is not one of them. The magic command
%tensorflow_version X.X
is only available in Google Colab notebooks, not Jupyter notebooks.
Answered By - James
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.