Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 671896399
  • Loading branch information
colaboratory-team committed Sep 6, 2024
1 parent acf883b commit e972827
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions google/colab/output/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import json
import sys
import warnings
# pytype: disable=import-error
from IPython import display

Expand Down Expand Up @@ -111,10 +110,9 @@ def serve_kernel_port_as_window(port, path='/', anchor_text=None):
path: The path to be navigated to.
anchor_text: Text content of the anchor link.
"""
warnings.warn(
'This has been deprecated due to changes in browser security. Use'
' `serve_kernel_port_as_iframe` instead.',
DeprecationWarning,
print(
'\x1b[31mWarning: This function may stop working due to changes in'
' browser security.\nTry `serve_kernel_port_as_iframe` instead. \x1b[0m'
)

if not anchor_text:
Expand Down

0 comments on commit e972827

Please sign in to comment.