-
Use the template template/colab.ipynb as base template.
-
In the header make sure you fill the following fields:
Description: <required>
Tags: <required>, <>, <>
Notebook author: <required>
Model author: <optional>
License: <optional>
References: <optional>
-
Do not modify the initial two cells that take care of setup and jupyter notebook integration to do anything other than installing packages and instantiating the ampl_notebook. You can modify the list of modules and add more dependencies, but if you do anything else the changes may be overwritten.
-
Place your notebook inside
colab.ampl.com/authors/<github_username>/
. -
Update the badges and the index as shown below before committing.
Note: The default license for every notebook is MIT unless specified otherwise in the notebook.
The following commands update the README file and the index in the documentation, as well as add any new automatically created files to the repository:
$ python scripts/index.py
$ git add docs/source/
Note that the notebook headers are patched with new badges using links to the correct locations after the notebook is published. The first two notebook cells are modified to ensure that requirements are installed and that the ampl_notebook is instantiated.
MIT
Copyright © 2022-2023 AMPL Optimization inc. All rights reserved.