Skip to content

Commit a2315f2

Browse files
committed
new version 2025
0 parents  commit a2315f2

File tree

99 files changed

+71374
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+71374
-0
lines changed

.github/workflows/book.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: book
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install pandoc
11+
run: |
12+
sudo apt-get -yq update
13+
sudo apt-get install -yq pandoc texlive-xetex texlive-fonts-extra gfortran ffmpeg
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Install Miniconda
17+
uses: conda-incubator/setup-miniconda@v2
18+
with:
19+
miniconda-version: "latest"
20+
- name: Install dependencies
21+
shell: bash -l {0}
22+
run: |
23+
conda env create -f environment.yml -n runenv
24+
conda run -n runenv python -m ipykernel install --user --name python3
25+
- name: Build the book
26+
shell: bash -l {0}
27+
run: conda run -n runenv jupyter-book build notebooks
28+
- name: GitHub Pages action
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./notebooks/_build/html

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.ipynb_checkpoints/
2+
*.swp
3+
*.html
4+
hello.py
5+
__pycache__/fibo.cpython-36.pyc
6+
fibo.py
7+
sample.txt
8+
workfile.json
9+
workfile.txt
10+
today/backup.db
11+
today/data.db
12+
test.out
13+
circle.png
14+
*.h5
15+
*.npy
16+
dgemm.f
17+
dgemm.pyf
18+
euclidian_norm.f
19+
euclidian_norm.f90
20+
mylapack.cpython-36m-darwin.so
21+
*.so
22+
vect.cpython-36m-darwin.so.dSYM/Contents/Info.plist
23+
*.out
24+
*.o
25+
*.d
26+
*.c
27+
examples/
28+
setup.py
29+
lp_results.txt
30+
sparkmonitor_kernelextension.log
31+
*.pyc
32+
solutions/__pycache__/__init__.cpython-36.pyc
33+
solutions/classes/__pycache__/__init__.cpython-36.pyc
34+
solutions/classes/__pycache__/grocery.cpython-36.pyc
35+
solutions/classes/__pycache__/polynomial.cpython-36.pyc
36+
ipython_cell_input.py
37+
sparkmonitor_serverextension.log
38+
.pytest_cache/v/cache/lastfailed
39+
.pytest_cache/v/cache/nodeids
40+
None0000000.png
41+
tests.py
42+
*.pyc
43+
solutions/classes/__pycache__/__init__.cpython-36.pyc
44+
solutions/classes/__pycache__/grocery.cpython-36.pyc
45+
solutions/classes/__pycache__/polynomial.cpython-36.pyc
46+
envs/
47+
.doit.db
48+
build/
49+
pool.py
50+
process_pool.py
51+
notebooks/cython_f_example.pyx
52+
notebooks/cython_omp.pyx
53+
notebooks/today/data.db
54+
notebooks/today/backup.db
55+
notebooks/_build/
56+
notebooks/today/
57+
notebooks/demo.py

LICENCE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International License</a>.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/pnavaro/python-notebooks/master)
2+
[![Book](https://github.com/pnavaro/python-notebooks//workflows/book/badge.svg)](https://pnavaro.github.io/python-notebooks)
3+
4+
This tutorial is made for scientists who want to learn Python and eventually step from Matlab.
5+
6+
Python is a general programming language with many scientific libraries.
7+
It is optimized to be easy to develop in. The same is not true for Matlab which is
8+
a domain-specific language.
9+
10+
1. Install [Miniforge](https://github.com/conda-forge/miniforge)
11+
12+
2. Download this repository:
13+
14+
```
15+
git clone https://github.com/pnavaro/python-notebooks.git
16+
```
17+
18+
or download as a [zip file](https://github.com/pnavaro/python-notebooks/archive/master.zip).
19+
20+
3. Create a new conda environment:
21+
22+
```
23+
conda env create -f environment.yml -n python-navaro
24+
source activate python-navaro # Linux OS/X
25+
activate python-navaro # Windows
26+
```
27+
28+
4. If you have an existing installation of Jupyter install the new kernel with:
29+
30+
```
31+
conda run -n python-navaro python -m ipykernel install --user --name python-navaro
32+
```
33+
34+
5. Open notebooks with:
35+
36+
```
37+
cd python-notebooks
38+
jupyter notebook
39+
```
40+
41+
Pierre

environment.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
channels:
2+
- sympy
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- cython
7+
- fortran-magic
8+
- h5py
9+
- imageio
10+
- ipykernel
11+
- ipywidgets
12+
- joblib
13+
- jupytext
14+
- line_profiler
15+
- lorem
16+
- matplotlib
17+
- memory_profiler
18+
- numba
19+
- numexpr
20+
- numpy
21+
- pillow
22+
- progressbar2
23+
- pythran
24+
- scipy
25+
- seaborn
26+
- setuptools
27+
- sympy
28+
- tqdm
29+
- ujson
30+
- pip
31+
- pip:
32+
- py-heat-magic
33+
- jupyter-book

0 commit comments

Comments
 (0)