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
16 changes: 1 addition & 15 deletions docs/get_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,8 @@
"id": "6B95Hb6YVgPZ",
"outputId": "9f27f106-41e8-40bd-f73d-6abbb1314643"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TensorFlow 2.x selected.\n"
]
}
],
"outputs": [],
"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
16 changes: 1 addition & 15 deletions docs/graphs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,8 @@
"colab_type": "code",
"id": "6B95Hb6YVgPZ"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TensorFlow 2.x selected.\n"
]
}
],
"outputs": [],
"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
16 changes: 1 addition & 15 deletions docs/hyperparameter_tuning_with_hparams.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,8 @@
"colab_type": "code",
"id": "8p3Tbx8cWEFA"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TensorFlow 2.x selected.\n"
]
}
],
"outputs": [],
"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
16 changes: 1 addition & 15 deletions docs/scalars_and_keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,8 @@
"colab_type": "code",
"id": "3U5gdCw_nSG3"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TensorFlow 2.x selected.\n"
]
}
],
"outputs": [],
"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
6 changes: 0 additions & 6 deletions docs/tbdev_getting_started.ipynb
Original file line number Diff line number Diff line change
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
16 changes: 1 addition & 15 deletions docs/tensorboard_in_notebooks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,8 @@
"id": "8p3Tbx8cWEFA",
"outputId": "508ab43d-1282-49a4-ba4e-a04f7778865f"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TensorFlow 2.x selected.\n"
]
}
],
"outputs": [],
"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