inline share link fix

This commit is contained in:
dawoodkhan82 2020-08-31 17:59:24 -04:00
parent 8b17af6e77
commit 1fada45e23

View File

@ -366,9 +366,12 @@ class Interface:
# Embed the remote interface page if on google colab;
# otherwise, embed the local page.
print("Interface loading below...")
if share:
while not networking.url_ok(share_url):
time.sleep(1)
display(IFrame(share_url, width=1000, height=500))
else:
display(IFrame(path_to_local_server, width=1000, height=500))
config = self.get_config_file()
config["share_url"] = share_url