From 77cf17886b4d6703d738fd229be7b53138793a1c Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 12 Jul 2023 15:48:22 +1000 Subject: [PATCH 1/2] review quantecon-py pages --- pages/python-examples.md | 21 --------------------- pages/quantecon-py.md | 13 +++++-------- 2 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 pages/python-examples.md diff --git a/pages/python-examples.md b/pages/python-examples.md deleted file mode 100644 index b53bf29..0000000 --- a/pages/python-examples.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Additional Python Examples -permalink: /python-examples/ -menu_item: false ---- -# Additional Python Examples - -## Example #1 - -### Creating a discrete approximation to an AR(1) process - -The following code imports the `quantecon` library and creates a discrete approximation to an AR(1) process - - from quantecon import approx_markov - states, matrix = approx_markov(0.9, 0.1, n=4) - print(matrix) - print(states) - -In the below figure we are running this code interactively in an Jupyter notebook (See [here](https://lectures.quantecon.org/py/getting_started.html#jupyter) for more details on setting up [Jupyter](http://jupyter.org/)) and printing the results - -![](/assets/img/test-qe.png) diff --git a/pages/quantecon-py.md b/pages/quantecon-py.md index afe5f2a..e20334a 100644 --- a/pages/quantecon-py.md +++ b/pages/quantecon-py.md @@ -32,7 +32,7 @@ A high performance, open source Python code library for economics ## Installation -Before installing `quantecon` we recommend you install the [Anaconda](https://www.anaconda.com/download/) Python distribution, which includes a full suite of scientific python tools. **Note:** quantecon is now only supporting Python version 3.5+. This is mainly to allow code to be written taking full advantage of new features such as using the @ symbol for matrix multiplication. Therefore please install the latest Python 3 Anaconda distribution. +Before installing `quantecon` we recommend you install the [Anaconda](https://www.anaconda.com/download/) Python distribution, which includes a full suite of scientific python tools. **Note:** `quantecon` only supports Python version 3.5+. This is mainly to allow code to be written taking full advantage of new features such as using the `@` symbol for matrix multiplication. Therefore please install the latest Python 3 Anaconda distribution. Next you can install quantecon by opening a terminal prompt and typing @@ -60,16 +60,13 @@ An alternative is to download the sourcecode of the `quantecon` package and in Once you have downloaded the source files then the package can be installed by running - python setup.py install + cd QuantEcon.py + pip install ./ (To learn the basics about setting up Git see [this link](https://help.github.com/articles/set-up-git/).) ## Examples and Sample Code -Many examples of QuantEcon.py in action can be found at [Quantitative Economics](https://lectures.quantecon.org/). See also the +Many examples of QuantEcon.py in action can be found at [Quantitative Economics](https://lectures.quantecon.org/). -* [Documentation](http://quanteconpy.readthedocs.org/en/latest/) -* [Notebook gallery](/notebooks) -* [Additional Examples](/python-examples) - -QuantEcon.py is supported financially by the [Alfred P. Sloan Foundation](http://www.sloan.org/) and is part of the [QuantEcon organization](/). +QuantEcon.py is supported financially by the [Alfred P. Sloan Foundation](http://www.sloan.org/) and is part of the [QuantEcon organization (A NumFOCUS fiscally sponsored project)](/). From 2f63f1cd8b65e7a295f6183f15e884b42a954a7b Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 13 Jul 2023 14:27:14 +1000 Subject: [PATCH 2/2] remove old note no longer needed --- pages/quantecon-py.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/quantecon-py.md b/pages/quantecon-py.md index e20334a..6c24847 100644 --- a/pages/quantecon-py.md +++ b/pages/quantecon-py.md @@ -32,7 +32,7 @@ A high performance, open source Python code library for economics ## Installation -Before installing `quantecon` we recommend you install the [Anaconda](https://www.anaconda.com/download/) Python distribution, which includes a full suite of scientific python tools. **Note:** `quantecon` only supports Python version 3.5+. This is mainly to allow code to be written taking full advantage of new features such as using the `@` symbol for matrix multiplication. Therefore please install the latest Python 3 Anaconda distribution. +Before installing `quantecon` we recommend you install the [Anaconda](https://www.anaconda.com/download/) Python distribution, which includes a full suite of scientific python tools. Next you can install quantecon by opening a terminal prompt and typing