Skip to content
Snippets Groups Projects

Reset proxies before fetching notebook name

Merged jyotish requested to merge hotfix/reset-proxies-when-fetching-notebook-name into master
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
@@ -443,7 +443,13 @@ def get_jupyter_notebook_path():
"""
# TODO: Dynamically detect the endpoint
# TODO: Support with notebooks with auth
session_info = requests.get("http://localhost:8888/api/sessions").json()
proxies = {
"http": None,
"https": None,
}
session_info = requests.get(
"http://localhost:8888/api/sessions", proxies=proxies
).json()
return unquote(session_info[0]["path"])
Loading