Loading Data files
Title
Question
In [105]: %pylab
Using matplotlib backend: TkAgg
Populating the interactive namespace from numpy and matplotlib
In [106]: cat primes.txt
File "<ipython-input-106-b296f9e207f4>", line 1
cat primes.txt
^
SyntaxError: invalid syntax
Python-3.4.3 Loading-Data-From-Files 01-02 min 20-30 sec
Answers:
Please use the %cat magic command instead of only cat
If you are on windows you can use !type <file-path>/<filename>.txt Example: !type C:/Documents/myfile.txt
Login to add comment