Closed mmcky closed 8 years ago
The current notebook on Lucas Tree
has inbuilt write methods for support files. Given this is a community contributed notebooks - I would propose we leave it as is and remove the redundant copies of support files:
This notebook was originally updated to support a lucastree/
dependencies folder but *.py
and *.csv
files are no longer tracked at the root level. Therefore the notebook can safely write support files and be a self contained notebook.
@jstac Are you happy for this to be merged into the master branch. We have published a new version of QuantEcon that contains the simple fetch
utility.
This PR updates relevant notebooks to use the new dependencies folder and fetch method in QuantEcon.py ...
Submitted notebooks can now use additional code files (
*.py
), or data files (*.csv
) but they should be located in the new dependencies folder in QuantEcon.notebooks. They can be fetched using a simple QuantEcon methodfetch_nb_dependencies
.An example
The
Wald_Friedman.ipynb
usesWald_Friedman_utils.py
file to house some code that would otherwise clutter the notebook. To make this importable it should be located at the root level of the jupyter notebook.Wald_Friedman_utils.py
should be located independencies/
and then two lines added to the notebook:This will download the file from GitHub directly - allowing this notebook to be run anywhere. This can also be done with data files etc.