I run the following commands in code cell of jupyternotebook.
indata = tmp_filename()
f = open(indata, "w")
f.write("17\n42\n")
f.close()
l = read_data(indata, ZZ); l
And I get the following error message:
TypeError: 'NoneType' object is not iterable
But the result is output in terminal.
[I 21:15:07.797 NotebookApp] Saving file at /Untitled.ipynb
[17, 42]
How to solve this problem?
By the way: the "print" function also can not output in Jupternotebook.