" - [os](https://docs.python.org/3/library/os.html#module-os)/[sys](https://docs.python.org/3/library/sys.html): Miscellaneous operating system interfaces\n",
" - [os.path](https://docs.python.org/3/library/os.path.html)/[pathlib](https://docs.python.org/3/library/pathlib.html): utilities to deal with filesystem paths (latter provides an object-oriented interface)\n",
" - [pickle](https://docs.python.org/3/library/pickle.html): Store/load any python object\n",
" - [turtule](https://docs.python.org/3/library/turtle.html#module-turtle): teach python to your kids!\n",
" - [warnings](https://docs.python.org/3/library/warnings.html#module-warnings): tell people they are not using your code properly"
]
]
}
}
],
],
"metadata": {},
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
},
"toc": {
"colors": {
"hover_highlight": "#DAA520",
"running_highlight": "#FF0000",
"selected_highlight": "#FFD700"
},
"moveMenuLeft": true,
"nav_menu": {
"height": "417px",
"width": "252px"
},
"navigate_menu": true,
"number_sections": true,
"sideBar": true,
"threshold": 4,
"toc_cell": false,
"toc_section_display": "block",
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 2
}
}
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
# Main scientific python libraries
# Main scientific python libraries
See https://scipy.org/
See https://scipy.org/
Most of these packages have or are in thr progress of dropping support for python2.
Most of these packages have or are in thr progress of dropping support for python2.
So use python3!
So use python3!
## [Numpy](http://www.numpy.org/): arrays
## [Numpy](http://www.numpy.org/): arrays
This is the main library underlying (nearly) all of the scientific python ecosystem.
This is the main library underlying (nearly) all of the scientific python ecosystem.
See the tutorial in the beginner session or [the official numpy tutorial](https://docs.scipy.org/doc/numpy-dev/user/quickstart.html) for usage details.
See the tutorial in the beginner session or [the official numpy tutorial](https://docs.scipy.org/doc/numpy-dev/user/quickstart.html) for usage details.
The usual nickname of numpy is np:
The usual nickname of numpy is np:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
```python
importnumpyasnp
importnumpyasnp
```
```
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
Numpy includes support for:
Numpy includes support for:
- N-dimensional arrays with various datatypes
- N-dimensional arrays with various datatypes
- masked arrays
- masked arrays
- matrices
- matrices
- structured/record array
- structured/record array
- basic functions (e.g., sin, log, arctan, polynomials)
- basic functions (e.g., sin, log, arctan, polynomials)
- basic linear algebra
- basic linear algebra
- random number generation
- random number generation
## [Scipy](https://scipy.org/scipylib/index.html): most general scientific tools
## [Scipy](https://scipy.org/scipylib/index.html): most general scientific tools
At the top level this module includes all of the basic functionality from numpy.
At the top level this module includes all of the basic functionality from numpy.
You could import this as, but you might as well import numpy directly.
You could import this as, but you might as well import numpy directly.
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
```python
importscipyassp
importscipyassp
```
```
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
The main strength in scipy lies in its sub-packages:
The main strength in scipy lies in its sub-packages:
-[os](https://docs.python.org/3/library/os.html#module-os)/[sys](https://docs.python.org/3/library/sys.html): Miscellaneous operating system interfaces
-[os.path](https://docs.python.org/3/library/os.path.html)/[pathlib](https://docs.python.org/3/library/pathlib.html): utilities to deal with filesystem paths (latter provides an object-oriented interface)
-[pickle](https://docs.python.org/3/library/pickle.html): Store/load any python object
-[os](https://docs.python.org/3/library/os.html#module-os)/[sys](https://docs.python.org/3/library/sys.html): Miscellaneous operating system interfaces
-[os.path](https://docs.python.org/3/library/os.path.html)/[pathlib](https://docs.python.org/3/library/pathlib.html): utilities to deal with filesystem paths (latter provides an object-oriented interface)
-[pickle](https://docs.python.org/3/library/pickle.html): Store/load any python object