2023-11-16 17:42:39 +01:00
# How to Python in computational neuroscience, data mining, and more
2023-12-02 20:26:58 +01:00
{:.no_toc}
2023-12-04 01:20:55 +01:00
< nav markdown = "1" class = "toc-class" >
2023-12-02 20:26:58 +01:00
* TOC
{:toc}
2023-12-04 01:20:55 +01:00
< / nav >
2023-11-16 17:37:23 +01:00
2023-11-17 17:47:28 +01:00
All the tutorials are tested with Python 3.11.x. Older version might have a problem with the new versions of type anotations.
2023-11-17 17:47:16 +01:00
2023-12-12 15:28:07 +01:00
## Flow chart
* [Flow chart symbols ](flow/overview/README.md )
2023-12-12 17:05:27 +01:00
* [Examples ](flow/examples/README.md )
2023-12-12 17:41:07 +01:00
* [Flow chart for baking bread ](flow/baking_bread/README.md )
2023-12-12 15:28:07 +01:00
2023-12-07 21:13:55 +01:00
## Workflow
* [Python installation ](workflow/python_pure/README.md )
2023-12-07 22:02:11 +01:00
* [VS Code installation ](workflow/vscode_install/README.md )
2023-12-07 23:29:18 +01:00
* [VS Code configuration ](workflow/vscode_config/README.md )
2023-12-13 17:22:29 +01:00
* [VS Code Microsoft Tutorials ](workflow/microsoft_tutorials/README.md )
2023-12-13 17:58:28 +01:00
* [VS Code Python Interactive window ](workflow/vscode_interactive/README.md )
2023-12-13 01:07:03 +01:00
* [VS Code Markdown ](workflow/vscode_markdown/README.md )
2023-12-16 13:59:39 +01:00
* [VS Code Debugging ](workflow/vscode_debug/README.md )
2023-12-07 23:29:18 +01:00
2023-12-13 17:56:56 +01:00
Important VS Code notes:
* You can mark segments of source node with your mouse (or keyboard) and use the TAB key to increase the level of the indentation or use SHIFT + TAB do decrease the indentation level.
2023-12-22 14:06:38 +01:00
* Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
2023-12-13 17:56:56 +01:00
* The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.
2023-12-07 21:13:55 +01:00
2023-12-02 01:50:57 +01:00
## Python: The Basics of the basics
2023-12-08 15:22:21 +01:00
* [Overview ](python_basics/where_to_start/README.md )
2023-12-06 19:47:30 +01:00
* [Hello, Python ](python_basics/hello_python/README.md )
2023-12-05 14:25:02 +01:00
* [Style Rulez ](python_basics/style_rulez/README.md )
2023-12-05 14:22:39 +01:00
* [Programming Recommendations ](python_basics/programming_recommendations/README.md )
2023-12-05 18:56:33 +01:00
* [Basic Math Operations ](python_basics/basic_math_operations/README.md )
2023-12-05 10:04:13 +01:00
* [Truth Value Testing ](python_basics/truth_value_testing/README.md )
2023-12-05 10:43:01 +01:00
* [Formatted String Literals ](python_basics/formatted_string_literals/README.md )
2023-12-06 21:21:15 +01:00
* [Flow Control Overview ](python_basics/flow_control_overview/README.md )
2023-12-06 23:33:01 +01:00
- [Flow Control: if, elif, else ](python_basics/if/README.md )
2023-12-07 17:48:36 +01:00
- [Flow Control: for-loop ](python_basics/for/README.md )
2023-12-07 00:03:11 +01:00
- [Flow Control: while, pass, break, continue ](python_basics/while/README.md )
2023-12-06 23:33:01 +01:00
- [Flow Control: match case ](python_basics/match/README.md )
2023-12-11 18:35:01 +01:00
* Sequence Types
- [Lists ](python_basics/list/README.md )
2023-12-12 19:58:52 +01:00
- [Tuple ](python_basics/tuple/README.md )
2023-12-12 22:48:46 +01:00
* Mapping Types
- [Dict ](python_basics/dict/README.md )
2023-12-13 15:45:58 +01:00
* [Functions ](python_basics/functions/README.md )
2023-12-13 11:43:58 +01:00
* [Type annotations ](python_basics/python_typing/README.md )
2023-12-05 15:42:05 +01:00
* [Files ](python_basics/files/README.md )
2023-12-12 23:15:39 +01:00
* [JSON and dict for parameter files ](python_basics/json/README.md )
2023-12-05 17:24:52 +01:00
* [Creating order via sub-directories: os.makedirs ](python_basics/os_makedirs/README.md )
* [Finding files in a directory: glob ](python_basics/glob/README.md )
2023-12-05 17:45:14 +01:00
* [Class ](python_basics/class/README.md )
2023-12-07 00:08:37 +01:00
* [Exceptions (try / except) ](python_basics/exceptions/README.md )
2023-12-14 01:01:02 +01:00
* [Importing Modules ](python_basics/modules/README.md )
2023-12-13 20:39:39 +01:00
* [Built-in Functions ](python_basics/built_in/README.md )
2023-12-22 15:10:48 +01:00
* [Built-in Keywords ](python_basics/keywords/README.md )
2023-12-11 12:30:22 +01:00
* [The Python Standard Library ](python_basics/standard_libraries/README.md )
2023-12-19 00:00:58 +01:00
* [Dataclass ](python_basics/dataclass/README.md )
2023-12-05 17:18:42 +01:00
2023-12-13 15:58:31 +01:00
## Numpy: The Basics of the basics
2023-12-19 11:20:13 +01:00
* [The N-dimensional array (ndarray) ](numpy/ndarray/README.md )
* [Dimensions and shape ](numpy/dimensions/README.md )
2023-12-14 21:06:15 +01:00
* [Making a matrix from numerical ranges ](numpy/numerical_ranges /README.md )
2023-12-13 16:32:06 +01:00
* [New matrix ](numpy/new_matrix/README.md )
2023-12-19 11:38:31 +01:00
* [Save and load ](numpy/load_save/README.md )
2023-12-14 14:56:24 +01:00
* [Reshape and flatten ](numpy/reshape/README.md )
2023-12-14 17:43:21 +01:00
* [Slices and Views ](numpy/slices_views/README.md )
2023-12-14 15:21:26 +01:00
* [Where ](numpy/where/README.md )
2023-12-14 16:07:44 +01:00
* [Boolean matricies and logic functions ](numpy/bool_matrix/README.md )
2023-12-14 18:35:19 +01:00
* [Advanced Indexing ](numpy/advanced_indexing/README.md )
2023-12-13 17:15:48 +01:00
* [Available dtypes ](numpy/dtype/README.md )
2023-12-13 16:48:48 +01:00
* [Constants ](numpy/constants/README.md )
2023-12-13 19:52:54 +01:00
* [Math functions ](numpy/math_functions/README.md )
2023-12-14 21:36:41 +01:00
* [Linear algebra ](numpy/linear_alg/README.md )
2023-12-13 16:32:06 +01:00
* [Random numbers the non-legacy way ](numpy/random/README.md )
2023-12-13 21:01:06 +01:00
* [Statistics ](numpy/statistics/README.md )
2023-12-15 14:41:18 +01:00
* [FFT ](numpy/fft/README.md )
2023-12-15 14:41:37 +01:00
- [rfft and spectral power ](numpy/numpy_fft_1/README.md )
2023-12-19 12:24:51 +01:00
* [Meshgrid ](numpy/mesh_grid/README.md )
2023-12-15 12:32:47 +01:00
2023-12-19 11:50:09 +01:00
In the case you know Matlab check here:
[NumPy for MATLAB users ](numpy/matlab_guide/README.md )
2023-12-14 11:38:25 +01:00
## Matplotlib.pyplot
2023-12-14 11:39:35 +01:00
* [Simple plot and imshow examples ](matplotlib/basics/README.md )
2023-12-14 11:38:25 +01:00
* [Overview of the available functions ](matplotlib/overview/README.md )
2023-12-21 16:12:29 +01:00
* [Animation and Slider ](matplotlib/animation_and_slider/README.md )
2023-12-14 11:38:25 +01:00
2023-12-18 14:38:28 +01:00
## Pandas
* [Basics ](pandas/basics/README.md )
2023-12-04 12:12:48 +01:00
## Numpy
2023-12-19 12:28:00 +01:00
* [Beyond normal np.save ](numpy/save_special/README.md )
* [Dealing with Matlab files ](numpy/mat_files/README.md )
2023-12-21 17:04:44 +01:00
* [Matlab is also just a Python package ](matlab/matlab_as_a_python_pakage/README.md )
2023-12-21 17:31:11 +01:00
* [Running Python remotely from Matlab ](matlab/python_used_by_matlab/README.md )
2023-12-04 12:12:48 +01:00
2023-12-18 14:38:28 +01:00
2023-12-16 15:40:07 +01:00
## Sci-kit Learn
* [Overview ](scikit-learn/overview/README.md )
2023-12-19 14:40:24 +01:00
* [KMeans ](scikit-learn/kmeans/README.md )
2023-12-19 15:34:02 +01:00
* [PCA ](scikit-learn/pca/README.md )
2023-12-19 15:57:49 +01:00
* [FastICA ](scikit-learn/fast_ica/README.md )
2023-12-16 15:40:07 +01:00
2023-12-19 16:08:34 +01:00
## SciPy
* [Remove a common signal from your data ](scipy/SVD_data_cleaning/README.md )
2023-12-19 16:11:30 +01:00
* [scipy.signal: Butterworth low, high and band-pass ](scipy/scipy.signal_butterworth/README.md )
2023-12-01 18:18:23 +01:00
2023-12-02 01:52:51 +01:00
## Python: Questions of spectral nature
2023-12-01 18:18:23 +01:00
* [PyWavelets: Wavelet Transforms in Python ](pywavelet/README.md )
2023-11-16 17:37:23 +01:00
2023-12-01 21:32:08 +01:00
2023-12-02 01:52:51 +01:00
## Python: Daily little helper
2023-12-13 01:29:56 +01:00
* [TQDM: Make your progress visible ](helper/TQDM/README.md )
* [Argh: Organize your command line arguments ](helper/argh/README.md )
2023-12-15 14:55:55 +01:00
## OpenCV2 and Python
* [How to read a webcam with CV2 ](cv2/webcam/README.md )
2023-12-01 21:32:08 +01:00
2023-12-06 00:22:24 +01:00
## PyTorch
2023-12-08 14:44:56 +01:00
* [Get CUDA ready! ](pytorch/cuda/README.md )
2023-12-22 14:40:46 +01:00
* [Interfacing Data ](pytorch/interfacing_data/README.md )
2023-12-16 19:56:29 +01:00
* [Data augmentation ](pytorch/augmentation/README.md )
2023-12-06 00:22:24 +01:00
* [Layers ](pytorch/layers/README.md )
2023-12-20 19:23:13 +01:00
* [Converting the original MNIST files into numpy ](pytorch/MNIST/README.md )
2023-12-15 20:32:41 +01:00
* [How to take advantage of an optimizer for your non-Pytorch project ](pytorch/optimizer_special/README.md )
2023-12-15 20:37:32 +01:00
* [How to take advantage of a learning rate scheduler for your non-Pytorch project ](pytorch/scheduler_special/README.md )
2023-12-06 00:22:24 +01:00
2023-12-16 18:54:56 +01:00
## Arduino
* [Basics with Python / Matlab ](arduino/basics/README.md )
2023-12-02 01:52:51 +01:00
## Matlab: Basics
2023-12-16 03:39:04 +01:00
{: .topic-optional}
This pages are in a rough state. e.g. equations are broken. Don't know why...
2023-12-01 15:18:45 +01:00
* [Basic Structure of a Computer ](matlab/1/README.md )
* [Representation of Numbers in the Computer ](matlab/2/README.md )
2023-12-16 02:03:13 +01:00
* [Basic Commands and Variables ](matlab/3/README.md )
2023-12-16 02:30:13 +01:00
* [Graphics ](matlab/4/README.md )
2023-12-16 02:40:51 +01:00
* [Systematic Programming ](matlab/5/README.md )
2023-12-16 03:06:25 +01:00
* [Vectorization and Vector Calculus in Matlab ](matlab/6/README.md )
2023-12-16 03:21:38 +01:00
* [Integration and Differentiation ](matlab/7/README.md )
2023-12-16 03:39:04 +01:00
* [Differential Equations ](matlab/8/README.md )
2023-12-16 01:37:26 +01:00
* [Data Analysis ](matlab/9/README.md )
2023-12-01 15:18:45 +01:00
2023-12-16 03:39:04 +01:00
{: .topic-optional}
Note: I will transfer the old pages to this new place (and update them). It will take some time but it will happen...