From 24320946fe4cb2aded0a539f320a8f92591338e4 Mon Sep 17 00:00:00 2001 From: Feynman Liang Date: Fri, 7 Jan 2022 08:55:15 -0800 Subject: [PATCH 1/2] Fix HTTP 406 from causal-effects.com --- tutorials/hello_redner.ipynb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tutorials/hello_redner.ipynb b/tutorials/hello_redner.ipynb index 859e416..fda5796 100644 --- a/tutorials/hello_redner.ipynb +++ b/tutorials/hello_redner.ipynb @@ -137,6 +137,9 @@ "import urllib\n", "import zipfile\n", "# wget\n", + "opener = urllib.request.build_opener() + "opener.addheaders = [('Accept', 'application/octet-stream')]\n", + "urllib.request.install_opener(opener)\n", "filedata = urllib.request.urlretrieve('https://casual-effects.com/g3d/data10/common/model/teapot/teapot.zip', 'teapot.zip')\n", "# unzip\n", "zip_ref = zipfile.ZipFile('teapot.zip', 'r')\n", @@ -272,4 +275,4 @@ ] } ] -} \ No newline at end of file +} From f2568e4432ff7c980157ced49b18fecd9659b66a Mon Sep 17 00:00:00 2001 From: Feynman Liang Date: Fri, 7 Jan 2022 08:59:14 -0800 Subject: [PATCH 2/2] Update hello_redner.ipynb --- tutorials/hello_redner.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/hello_redner.ipynb b/tutorials/hello_redner.ipynb index fda5796..a8aec5c 100644 --- a/tutorials/hello_redner.ipynb +++ b/tutorials/hello_redner.ipynb @@ -137,7 +137,7 @@ "import urllib\n", "import zipfile\n", "# wget\n", - "opener = urllib.request.build_opener() + "opener = urllib.request.build_opener()\n", "opener.addheaders = [('Accept', 'application/octet-stream')]\n", "urllib.request.install_opener(opener)\n", "filedata = urllib.request.urlretrieve('https://casual-effects.com/g3d/data10/common/model/teapot/teapot.zip', 'teapot.zip')\n",