Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 56e6814

Browse files
committed
added instructions for reseting any play-around changes when installing the template
1 parent 5a42833 commit 56e6814

3 files changed

Lines changed: 39 additions & 22 deletions

File tree

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,17 @@ So, after deciding which editor you are working with (Azure ML default notebook
530530
# do not add comment to same line with a magic command:
531531
%load_ext nb_black #this comment breaks the magic command
532532

533-
8. Check that you can run the notebooks `00_data.ipynb`, `01_model.ipynb` and `02_loss.ipynb`.
533+
8. Check that you can run the notebooks `00_data.ipynb`, `01_model.ipynb`, `02_loss.ipynb` and `03_workflow.ipynb`.
534534
You may have to change the kernel your notebook interpreter is using to the one you just created.
535535
This can be done drop down bar in top of the notebook editor. You can play around with the notebooks to better understand the structure and the examples.
536536

537-
9. Replace the notebooks `index`, `data`, `model`, `loss` and `workflow` with copies without the code examples (there is also additional empty notebook template `_XX_empty_notebook_template.ipynb` if you want to deviate from basic template structure):
537+
9. If while getting to know the template examples you ran or edited any of the notebooks, run the following command to clean any unrelevant changes.
538+
539+
git reset --hard
540+
541+
Please note, that this will reset any changes made to the template. We do this to clean any 'play-around' work you might have done getting to know the template and the examples.
542+
543+
10. Replace the notebooks `index`, `data`, `model`, `loss` and `workflow` with copies without the code examples (there is also additional empty notebook template `_XX_empty_notebook_template.ipynb` if you want to deviate from basic template structure):
538544

539545

540546
git rm index.ipynb 00_data.ipynb 01_model.ipynb 02_loss.ipynb 03_workflow.ipynb
@@ -544,36 +550,36 @@ This can be done drop down bar in top of the notebook editor. You can play aroun
544550
git mv notebook_templates/_02_loss.ipynb ./02_loss.ipynb
545551
git mv notebook_templates/_03_workflow.ipynb ./03_workflow.ipynb
546552

547-
10. You may delete the folders `ml_project_template`, `notebook_templates` and `visuals`.
553+
11. You may delete the folders `ml_project_template`, `notebook_templates` and `visuals`.
548554

549555

550556
git rm -r ml_project_template notebook_templates visuals docs/visuals
551557

552-
11. Edit `settings.ini`, `docs/_config.yml` and `docs/_data/topnav.yml` according to your project details.
558+
12. Edit `settings.ini`, `docs/_config.yml` and `docs/_data/topnav.yml` according to your project details.
553559
The files contain instructions for minimum required edits.
554560
You can continue editing them in the future, so no need to worry about getting it right the first time.
555561
These are used for building the python modules and docs based on your notebooks.
556562
If you get errors when building a module or docs, take a look again at these files.
557563

558-
12. The Helsinki logo is a registered trademark, and may only be used by the city of Helsinki.
564+
13. The Helsinki logo is a registered trademark, and may only be used by the city of Helsinki.
559565
If you are using this template for other than city of Helsinki projects, remove the files `favicon.ico` and `company_logo.png` from `docs/assets/images/`.
560566
You may replace these with your own logo. Fast.ai logo will show in documentation if custom logos are not defined.
561567

562-
13. Recreate the module and doc pages to clean them: `nbdev_build_lib && nbdev_build_docs`
568+
14. Recreate the module and doc pages to clean them: `nbdev_build_lib && nbdev_build_docs`
563569

564-
14. Configure your git user name and email adress (one of those added to your git account) if you haven't done it already:
570+
15. Configure your git user name and email adress (one of those added to your git account) if you haven't done it already:
565571

566572

567573
git config --global user.name "FIRST_NAME LAST_NAME"
568574
git config --global user.email "MY_NAME@example.com"
569575

570-
15. Make initial commit (snapshot of the code as it is when you begin the work):
576+
16. Make initial commit (snapshot of the code as it is when you begin the work):
571577

572578

573579
git add .
574580
git commit -m "Initial commit"
575581

576-
16. Push (save changes to remote repository): `git push -u origin master`. You will be asked to log in with your SSH key and password, again.
582+
17. Push (save changes to remote repository): `git push -u origin master`. You will be asked to log in with your SSH key and password, again.
577583

578584

579585
## How to use

docs/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,18 @@ <h3 id="2.-On-your-computing-environment:">2. On your computing environment:<a c
528528

529529
</code></pre>
530530
<ol>
531-
<li><p>Check that you can run the notebooks <code>00_data.ipynb</code>, <code>01_model.ipynb</code> and <code>02_loss.ipynb</code>.
531+
<li><p>Check that you can run the notebooks <code>00_data.ipynb</code>, <code>01_model.ipynb</code>, <code>02_loss.ipynb</code> and <code>03_workflow.ipynb</code>.
532532
You may have to change the kernel your notebook interpreter is using to the one you just created.
533533
This can be done drop down bar in top of the notebook editor. You can play around with the notebooks to better understand the structure and the examples.</p>
534534
</li>
535-
<li><p>Replace the notebooks <code>index</code>, <code>data</code>, <code>model</code>, <code>loss</code> and <code>workflow</code> with copies without the code examples (there is also additional empty notebook template <code>_XX_empty_notebook_template.ipynb</code> if you want to deviate from basic template structure):</p>
535+
<li><p>If while getting to know the template examples you ran or edited any of the notebooks, run the following command to clean any unrelevant changes.</p>
536+
<p>git reset --hard</p>
536537
</li>
537538
</ol>
539+
<p>Please note, that this will reset any changes made to the template. We do this to clean any 'play-around' work you might have done getting to know the template and the examples.</p>
540+
<ol>
541+
<li>Replace the notebooks <code>index</code>, <code>data</code>, <code>model</code>, <code>loss</code> and <code>workflow</code> with copies without the code examples (there is also additional empty notebook template <code>_XX_empty_notebook_template.ipynb</code> if you want to deviate from basic template structure):</li>
542+
</ol>
538543

539544
<pre><code>git rm index.ipynb 00_data.ipynb 01_model.ipynb 02_loss.ipynb 03_workflow.ipynb
540545
git mv notebook_templates/_index.ipynb ./index.ipynb

index.ipynb

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,17 @@
615615
" # do not add comment to same line with a magic command:\n",
616616
" %load_ext nb_black #this comment breaks the magic command\n",
617617
"\n",
618-
"8. Check that you can run the notebooks `00_data.ipynb`, `01_model.ipynb` and `02_loss.ipynb`.\n",
618+
"8. Check that you can run the notebooks `00_data.ipynb`, `01_model.ipynb`, `02_loss.ipynb` and `03_workflow.ipynb`.\n",
619619
"You may have to change the kernel your notebook interpreter is using to the one you just created.\n",
620620
"This can be done drop down bar in top of the notebook editor. You can play around with the notebooks to better understand the structure and the examples.\n",
621621
"\n",
622-
"9. Replace the notebooks `index`, `data`, `model`, `loss` and `workflow` with copies without the code examples (there is also additional empty notebook template `_XX_empty_notebook_template.ipynb` if you want to deviate from basic template structure):\n",
622+
"9. If while getting to know the template examples you ran or edited any of the notebooks, run the following command to clean any unrelevant changes.\n",
623+
"\n",
624+
" git reset --hard\n",
625+
"\n",
626+
"Please note, that this will reset any changes made to the template. We do this to clean any 'play-around' work you might have done getting to know the template and the examples.\n",
627+
"\n",
628+
"10. Replace the notebooks `index`, `data`, `model`, `loss` and `workflow` with copies without the code examples (there is also additional empty notebook template `_XX_empty_notebook_template.ipynb` if you want to deviate from basic template structure):\n",
623629
"\n",
624630
"\n",
625631
" git rm index.ipynb 00_data.ipynb 01_model.ipynb 02_loss.ipynb 03_workflow.ipynb\n",
@@ -629,36 +635,36 @@
629635
" git mv notebook_templates/_02_loss.ipynb ./02_loss.ipynb\n",
630636
" git mv notebook_templates/_03_workflow.ipynb ./03_workflow.ipynb\n",
631637
"\n",
632-
"10. You may delete the folders `ml_project_template`, `notebook_templates` and `visuals`.\n",
638+
"11. You may delete the folders `ml_project_template`, `notebook_templates` and `visuals`.\n",
633639
"\n",
634640
"\n",
635641
" git rm -r ml_project_template notebook_templates visuals docs/visuals\n",
636642
"\n",
637-
"11. Edit `settings.ini`, `docs/_config.yml` and `docs/_data/topnav.yml` according to your project details.\n",
643+
"12. Edit `settings.ini`, `docs/_config.yml` and `docs/_data/topnav.yml` according to your project details.\n",
638644
"The files contain instructions for minimum required edits.\n",
639645
"You can continue editing them in the future, so no need to worry about getting it right the first time.\n",
640646
"These are used for building the python modules and docs based on your notebooks.\n",
641647
"If you get errors when building a module or docs, take a look again at these files.\n",
642648
"\n",
643-
"12. The Helsinki logo is a registered trademark, and may only be used by the city of Helsinki.\n",
649+
"13. The Helsinki logo is a registered trademark, and may only be used by the city of Helsinki.\n",
644650
"If you are using this template for other than city of Helsinki projects, remove the files `favicon.ico` and `company_logo.png` from `docs/assets/images/`.\n",
645651
"You may replace these with your own logo. Fast.ai logo will show in documentation if custom logos are not defined.\n",
646652
"\n",
647-
"13. Recreate the module and doc pages to clean them: `nbdev_build_lib && nbdev_build_docs`\n",
653+
"14. Recreate the module and doc pages to clean them: `nbdev_build_lib && nbdev_build_docs`\n",
648654
"\n",
649-
"14. Configure your git user name and email adress (one of those added to your git account) if you haven't done it already:\n",
655+
"15. Configure your git user name and email adress (one of those added to your git account) if you haven't done it already:\n",
650656
"\n",
651657
"\n",
652658
" git config --global user.name \"FIRST_NAME LAST_NAME\"\n",
653659
" git config --global user.email \"MY_NAME@example.com\"\n",
654660
"\n",
655-
"15. Make initial commit (snapshot of the code as it is when you begin the work):\n",
661+
"16. Make initial commit (snapshot of the code as it is when you begin the work):\n",
656662
"\n",
657663
"\n",
658664
" git add .\n",
659665
" git commit -m \"Initial commit\"\n",
660666
"\n",
661-
"16. Push (save changes to remote repository): `git push -u origin master`. You will be asked to log in with your SSH key and password, again.\n"
667+
"17. Push (save changes to remote repository): `git push -u origin master`. You will be asked to log in with your SSH key and password, again.\n"
662668
]
663669
},
664670
{
@@ -778,9 +784,9 @@
778784
],
779785
"metadata": {
780786
"kernelspec": {
781-
"display_name": "Python 3.8 (templateenv)",
787+
"display_name": "Python 3.8 - AzureML",
782788
"language": "python",
783-
"name": "templateenv_py3.8.1"
789+
"name": "python38-azureml"
784790
}
785791
},
786792
"nbformat": 4,

0 commit comments

Comments
 (0)