Background: I am learning how to work with TesorFlow and I tried my first example eager.ipynb from the get started section. Obviously the notebook is working, but I encountered an Error after I downloaded the eager.py file and ran it locally:
!head - n5 {train_dataset_fp}
^
SyntaxError: invalid syntax
I am not familiar with !head instruction, what is it supposed to do and hot to solve the error? Here are the recommendations I get from PyCharm:
Import from ...
pip._vendor.requests.head()
tensorflow.python.estimator.canned.head
tensorflow.contrib.estimator.python.estimator.head
tensorflow.contrib.timeseries.python.timeseries.head
tensorflow.contrib.gen.python.estimator.python.head
tensorflow.contrib.learn.python.learn.estimators.head
TensorFlow version: 1.7.0