We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eef0f commit e520630Copy full SHA for e520630
tools/tensorflow_docs/tools/nblint/style/tensorflow.py
@@ -81,7 +81,9 @@ def not_translation(args):
81
82
# Button checks
83
84
-is_button_cell_re = re.compile(r"class.*tfo-notebook-buttons")
+# Look for class="tfo-notebook-buttons" (CSS used on website versions) or the
85
+# run-in-colab logo (for notebooks that stick to GitHub/Colab).
86
+is_button_cell_re = re.compile(r"class.*tfo-notebook-buttons|colab_logo_32px\.png")
87
88
89
def get_arg_or_fail(user_args, arg_name, arg_fmt):
0 commit comments