Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove %tensorflow_version 2.x directives #3459

Merged
merged 10 commits into from Apr 2, 2020
8 changes: 1 addition & 7 deletions docs/get_started.ipynb
Expand Up @@ -90,12 +90,6 @@
}
],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This output cell is stale, right?

      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "TensorFlow 2.x selected.\n"
          ]
        }
      ],

Likewise in other notebooks.

"except Exception:\n",
" pass\n",
"\n",
"# Load the TensorBoard notebook extension\n",
"%load_ext tensorboard"
]
Expand Down Expand Up @@ -586,4 +580,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 1 addition & 7 deletions docs/graphs.ipynb
Expand Up @@ -106,12 +106,6 @@
}
],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass\n",
"\n",
"# Load the TensorBoard notebook extension.\n",
"%load_ext tensorboard"
]
Expand Down Expand Up @@ -503,4 +497,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 1 addition & 7 deletions docs/hyperparameter_tuning_with_hparams.ipynb
Expand Up @@ -97,12 +97,6 @@
}
],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass\n",
"\n",
"# Load the TensorBoard notebook extension\n",
"%load_ext tensorboard"
]
Expand Down Expand Up @@ -575,4 +569,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
2 changes: 1 addition & 1 deletion docs/migrate.ipynb
Expand Up @@ -392,4 +392,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 1 addition & 7 deletions docs/scalars_and_keras.ipynb
Expand Up @@ -98,12 +98,6 @@
}
],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass\n",
"\n",
"# Load the TensorBoard notebook extension.\n",
"%load_ext tensorboard"
]
Expand Down Expand Up @@ -547,4 +541,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 1 addition & 7 deletions docs/tbdev_getting_started.ipynb
Expand Up @@ -76,12 +76,6 @@
},
"outputs": [],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass\n",
"\n",
"!pip install -U tensorboard >piplog 2>&1"
]
},
Expand Down Expand Up @@ -251,4 +245,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 1 addition & 7 deletions docs/tensorboard_in_notebooks.ipynb
Expand Up @@ -137,12 +137,6 @@
}
],
"source": [
"try:\n",
" # %tensorflow_version only exists in Colab.\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass\n",
"\n",
"# Load the TensorBoard notebook extension\n",
"%load_ext tensorboard"
]
Expand Down Expand Up @@ -519,4 +513,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}