How to run old version tensorflow notebook on Google colab with tensorflow 2.0

how to run old version tensorflow notebook on Google colab with tensorflow 2.0

%tensorflow_version 1.x
import tensorflow as tf

@Sampada_Tavse,

You can install tensorflow 2.0 as described below

!pip install tensorflow==2.0

Please find the gist here for reference.

Incase if you are looking at the TF1.x version, please try !pip install tensorflow==1.15.0 instead of %tensorflow_version 1.x .

Thank you

@innat,

%tensorflow_version 1.x
import tensorflow as tf

Google Colab removed support for Tensorflow 1, and it is not possible to use %tensorflow_version 1.x magic anymore. Please find the gist here for reference. Thank you