From 8c255153cfbda2d55f8e6d2129ee4a750a95c49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Fri, 23 Sep 2022 11:35:38 +1200 Subject: [PATCH] import from IPython.display instead of IPython.core.display --- 10_neural_nets_with_keras.ipynb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/10_neural_nets_with_keras.ipynb b/10_neural_nets_with_keras.ipynb index 66c10df..5dd3eb0 100644 --- a/10_neural_nets_with_keras.ipynb +++ b/10_neural_nets_with_keras.ipynb @@ -2590,7 +2590,7 @@ "\n", " output.serve_kernel_port_as_window(6006)\n", "else:\n", - " from IPython.core.display import display, HTML\n", + " from IPython.display import display, HTML\n", "\n", " display(HTML('http://localhost:6006/'))" ] @@ -2632,7 +2632,11 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "You can share your TensorBoard logs with the world by uploading them to https://tensorboard.dev/. For this, you can run the `tensorboard dev upload` command, with the `--logdir` and `--one_shot` options, and optionally the `--name` and `--description` options. The first time, it will ask you to accept Google's Terms of Service, and to authenticate. This requires user input. Colab supports user input from shell commands, but the main other Jupyter environments do not, so for them we use a hackish workaround (alternatively, you could run the command in a terminal window, after you make sure to activate this project's conda environment and move to this notebook's directory)." + "You can share your TensorBoard logs with the world by uploading them to https://tensorboard.dev/. For this, you can run the `tensorboard dev upload` command, with the `--logdir` and `--one_shot` options, and optionally the `--name` and `--description` options. The first time, it will ask you to accept Google's Terms of Service, and to authenticate.\n", + "\n", + "Notes:\n", + "* Authenticating requires user input. Colab supports user input from shell commands, but the main other Jupyter environments do not, so for them we use a hackish workaround (alternatively, you could run the command in a terminal window, after you make sure to activate this project's conda environment and move to this notebook's directory).\n", + "* If you get an authentication related error (such as *invalid_grant: Bad Request*), it's likely that your login session has expired. In this case, try running the command `tensorboard dev auth revoke` to logout, and try again." ] }, {