> For the complete documentation index, see [llms.txt](https://ykkim.gitbook.io/dlip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ykkim.gitbook.io/dlip/programming/python.md).

# Python\_Numpy

## Python\_Numpy

{% hint style="info" %}
(Updated 2021.4) Use Python 3.7

(Updated 2022.4) Use Python 3.9
{% endhint %}

## Tutorial

### Python Tutorial

#### 1. In-Class Tutorial (using google colab)

In-Class Python Tutorial: [Learning Python in 60 minutes\_DLIP](https://colab.research.google.com/drive/1W0dVnmMUF_Yj-mb7B0tq5kl4x5yWHtff)

{% embed url="<https://colab.research.google.com/drive/1W0dVnmMUF_Yj-mb7B0tq5kl4x5yWHtff>" %}

#### 2.Free Online Tutorials

In English

{% embed url="<https://www.w3schools.com/python/default.asp>" %}

In Korean

{% embed url="<https://dojang.io/course/view.php?id=7>" %}

### Numpy Tutorial

#### 1. In-Class Tutorials (using google colab)

NumPy Tutorial: [Learning Numpy in 60 minutes\_DLIP](https://github.com/ykkimhgu/DLIP-src/blob/main/Tutorial_PythonNumpy/Tutorial_Numpy_2022.ipynb)

{% embed url="<https://github.com/ykkimhgu/DLIP-src/blob/main/Tutorial_PythonNumpy/Tutorial_Numpy_2022.ipynb>" %}

#### 2. Free Online Tutorials

In English

{% embed url="<https://www.w3schools.com/python/numpy/default.asp>" %}

***

## Installation and Virtual Environment

Prepare the environment as

1. Visual Studio Code
2. Python Environment (>3.6)

Follow the tutorial for installation

{% embed url="<https://ykkim.gitbook.io/dlip/image-processing/tutorial/tutorial-installation-for-py-opencv>" %}

### Create a new environment:

To create the new environment for Python 3.x, in your terminal window or an Anaconda Prompt, run:

Example: env name 'py36'

```
conda create -n py36 python=3.6 anaconda
```

### Update/upgrade Python

You can update Python in the same branch or upgrade to a higher branch.

#### Update in Anaconda Prompt:

If you are in an environment with Python version 3.4.2, the following command updates Python to the latest version in the 3.4.x branch:

```
conda update python
```

#### Upgrade in Anaconda Prompt:

The following command upgrades Python to another branch from 3.4 to 3.6 by installing that version of Python:

```
conda install python=3.6
```

Read more about Python Update and Upgrade

{% embed url="<https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html#id4>" %}

***

## Cheat Sheet for Numpy

{% file src="/files/-MTmq4y9FsP-Ex-8Quxl" %}
Numpy Cheat Sheet
{% endfile %}

![](/files/-MTmqGNF_5DKuV1-nbA2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ykkim.gitbook.io/dlip/programming/python.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
