chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:38:23 +08:00
commit 2725b63d23
700 changed files with 53581 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import unittest
import os
import subprocess
import tempfile
import watermark
import nbformat
def run_ipynb(path):
error_cells = []
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
args = ["python", "-m", "nbconvert", "--to",
"notebook", "--execute", "--output",
"--ExecutePreprocessor.kernel_name", "python"
fout.name, path]
subprocess.check_output(args)
class TestNotebooks(unittest.TestCase):
def test_appendix_g_tensorflow_basics(self):
this_dir = os.path.dirname(os.path.abspath(__file__))
run_ipynb(os.path.join(this_dir,
'../appendix_g_tensorflow-basics.ipynb'))
if __name__ == '__main__':
unittest.main()