CamDavidsonPilon / Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/
MIT License
26.71k stars 7.87k forks source link

Chapter 1 TF2: from __future__ imports must occur at the beginning of the file #549

Open Narglfrob opened 1 year ago

Narglfrob commented 1 year ago

When accessing Chapter 1 of the Tensorflow port here and clicking on the "Run in Google Colab" button in the top right, when I execute the first code cell (with no changes) I get the following error:

File ["<ipython-input-3-c19fbaf2048a>"](https://localhost:8080/#), line 13
    #@markdown This sets the warning status (default is `ignore`, since this notebook runs correctly)
           ^
SyntaxError: from __future__ imports must occur at the beginning of the file

Any suggestions?