Skip to content

Commit

Permalink
add base url
Browse files Browse the repository at this point in the history
  • Loading branch information
twsl committed Feb 19, 2022
1 parent 82a481c commit 67e38e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fiftyone/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,9 @@ def _base_url(self):
return eval_js(
"google.colab.kernel.proxyPort(%d)" % self.server_port
)

if self._context == focx._DATABRICKS:
return _get_databricks_proxy_url(self.server_port)

address = self.server_address or "localhost"
return "http://%s:%d/" % (address, self.server_port)
Expand Down

0 comments on commit 67e38e6

Please sign in to comment.