8000 No public description by copybara-service[bot] · Pull Request #5787 · googlecolab/colabtools · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions google/colab/_shell_customizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
"""Colab-specific shell customizations."""

import os
import re
import textwrap

Expand Down Expand Up @@ -158,6 +159,14 @@ def import_message(error):
}
return msg, details

if os.environ.get('VERTEX_PRODUCT') == 'COLAB_ENTERPRISE':
msg = textwrap.dedent("""\
{sep}{green}
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
{sep}{normal}\n""".format(sep=_SEP, green=_GREEN, normal=_NORMAL))
return msg, {}

msg = textwrap.dedent("""\
{sep}{green}
NOTE: If your import is failing due to a missing package, you can
3F67 Expand Down
0