| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -422,6 +422,8 @@ RUN pip install flashtext && \ | |||
| 422 | 422 | pip install geopandas==0.6.3 && \ | |
| 423 | 423 | pip install nnabla && \ | |
| 424 | 424 | pip install vowpalwabbit && \ | |
| 425 | + # papermill can replace nbconvert for executing notebooks | ||
| 426 | + pip install papermill && \ | ||
| 425 | 427 | /tmp/clean-layer.sh | |
| 426 | 428 | ||
| 427 | 429 | # Tesseract and some associated utility packages | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ | |||
| 11 | 11 | } | |
| 12 | 12 | ], | |
| 13 | 13 | "metadata":{ | |
| 14 | + "kernelspec":{"language":"python","display_name":"Python 3","name":"python3"}, | ||
| 14 | 15 | "language_info":{ | |
| 15 | 16 | "codemirror_mode":{ | |
| 16 | 17 | "name":"ipython", | |
@@ -26,4 +27,4 @@ | |||
| 26 | 27 | }, | |
| 27 | 28 | "nbformat":4, | |
| 28 | 29 | "nbformat_minor":4 | |
| 29 | - } | ||
| 30 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + import unittest | ||
| 2 | + | ||
| 3 | + import subprocess | ||
| 4 | + | ||
| 5 | + class TestPapermill(unittest.TestCase): | ||
| 6 | + def test_papermill(self): | ||
| 7 | + result = subprocess.run([ | ||
| 8 | + 'papermill', | ||
| 9 | + '/input/tests/data/notebook.ipynb', | ||
| 10 | + '-', | ||
| 11 | + ], stdout=subprocess.PIPE) | ||
| 12 | + | ||
| 13 | + self.assertEqual(0, result.returncode) | ||
| 14 | + self.assertTrue(b'999' in result.stdout) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments