Skip to content

Commit

Permalink
101 thru papermill
Browse files Browse the repository at this point in the history
  • Loading branch information
payalcha committed Jan 16, 2025
1 parent b8e2c70 commit 0186bf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow_interface_101_mnist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ jobs:
with:
python-version: "3.10"

- name: Install Jupyter Lab Package
run: pip install jupyterlab
- name: Install Papermill Package
run: pip install papermill

- name: Run Notebook
run: |
jupyter nbconvert --execute --to notebook ./openfl-tutorials/experimental/workflow/101_MNIST.ipynb
papermill ./openfl-tutorials/experimental/workflow/101_MNIST.ipynb ./openfl-tutorials/experimental/workflow/101_MNIST_output.ipynb --request-save-on-cell-execute --log-output --autosave-cell-every 30
echo "Notebook run completed"
- name: Tar files
run: tar -cvf notebook.tar ./openfl-tutorials/experimental/workflow/101_MNIST.nbconvert.ipynb
run: tar -cvf notebook.tar ./openfl-tutorials/experimental/workflow/101_MNIST_output.ipynb

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down
4 changes: 0 additions & 4 deletions openfl-tutorials/experimental/workflow/101_MNIST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@
"metadata": {},
"outputs": [],
"source": [
"# Below code will display the print statement output on screen as well\n",
"import sys\n",
"sys.stdout = open('/dev/stdout', 'w')\n",
"\n",
"!pip install git+https://github.com/securefederatedai/openfl.git\n",
"!pip install -r workflow_interface_requirements.txt\n",
"!pip install torch\n",
Expand Down

0 comments on commit 0186bf3

Please sign in to comment.