You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 04-technologies.Rmd
+32-11
Original file line number
Diff line number
Diff line change
@@ -176,14 +176,28 @@ Go to [R Project](http://www.r-project.org) Go to
176
176
177
177
### Python
178
178
179
-
To install Python:
179
+
Use virtual environment for python.
180
+
**1. What is a Virtual Environment?**
181
+
A virtual environment is a self-contained space that contains a Python installation and its packages. It allows you to create isolated spaces for every single project, each with its own set of dependencies and configurations. This isolation ensures that projects do not interfere with each other.
Without virtual environments, we will face version conflicts and compatibility issues. Also, tracking the version of python and packages is important for reproducibility. This will make everything easier.
183
185
184
-
||
185
-
|------------|
186
-
|\### Use Python in Rstudio 1. create a virtual environment specific for the project |
186
+
**3. Create virtual environment using Anaconda**
187
+
188
+
- Download the [Anaconda Distribution](https://www.anaconda.com/download/success) and install it.
189
+
- We need to add Anaconda to PATH during installation process, or manually after that. See [What is PATH?] if you are not familier with PATH.
190
+
- Create a new environment with Python 3.7 for example (you can change the version as you want)
191
+
- Open "Anaconda Prompt" or cmd
192
+
-```conda create -n myenv python=3.7```
193
+
- put any name you like in "myenv". It should reflect project name.
194
+
- Activate the new environment
195
+
-```conda activate myenv```
196
+
- you are now in the virtual environment, and ready to install anything you want.
197
+
- Deactivate the environment
198
+
-```conda deactivate myenv```
199
+
200
+
### Use Python in Rstudio
187
201
188
202
### FFmpeg (Video edits)
189
203
FFmpeg is a powerful open-source framework used for handling videos. We use this for basic tasks such as converting, encoding, and decoding.
@@ -195,10 +209,7 @@ Windows
195
209
- Got to [FFmpeg official website](https://www.ffmpeg.org/)
196
210
- Download the latest static build for Windows.
197
211
- Once downloaded, extract the ZIP file to a desired location on your computer. recommended locations: "C:/Program Files/ffmpeg". (this keeps it in line with other program installations)
198
-
- Set Up FFmpeg Path (see [What is PATH?] if you are not familier)
199
-
- Open "Edit the system environment variables" in the control panels. (you can open it just typeing path in the search bar after pushing start bottum)
200
-
- In the "Edit Environment Variable" window, click "New" and paste the path to the bin folder inside your extracted FFmpeg folder (e.g., C:/Program Files/ffmpeg/bin).
201
-
- Click "OK" on all windows to apply the changes.
212
+
- Set up FFmpeg PATH (see [What is PATH?] if you are not familier)
202
213
- Open Command Prompt and type ffmpeg to check if it’s installed correctly.
203
214
204
215
Mac
@@ -233,6 +244,11 @@ Mac
233
244
234
245
### VPN
235
246
247
+
### Zotero (literature management)
248
+
Zotero is a free, open-source reference manager designed to help users collect, organize, cite, and share research. Zotero could be much more convienient by using following plugins: Zotfile (handling PDF attachment well) and Zutilo (Batch editing).
The ```PATH``` is an environment variable in your operating system that tells the system where to look for executable files (e.g., FFmpeg, imagemagick, anaconda, opencv) when you run commands in the Command Prompt or terminal.
248
264
For example, by adding FFmpeg's bin directory to the ```PATH```, you enable the system to find and run FFmpeg from anywhere, without needing to navigate to its folder every time. You can just type ```ffmpeg``` in the Command Prompt and it will work. Without adding it to the PATH, you would need to navigate to the folder where FFmpeg is installed and run the command from there.
265
+
How to add to PATH (FFmpeg for example):
266
+
267
+
- Open "Edit the system environment variables" in the control panels. (you can open it just typeing path in the search bar after pushing start bottum)
268
+
- In the "Edit Environment Variable" window, click "New" and paste the path to the bin folder inside your extracted FFmpeg folder (e.g., C:/Program Files/ffmpeg/bin).
269
+
- Click "OK" on all windows to apply the changes.
249
270
250
-
### I cannot play a video in my PC
271
+
### I cannot play a video on my PC
251
272
**1. Codec**
252
273
A codec (short for compressor-decompressor) is a tool that compresses and decompresses digital media files, such as videos and audio. There are various methods of codecs, and due to this variation, some videos may not be able to play in your PC.
<liclass="chapter" data-level="5.5.1" data-path="technologies.html"><ahref="technologies.html#r-and-rstudio"><iclass="fa fa-check"></i><b>5.5.1</b> R and RStudio</a></li>
<liclass="chapter" data-level="5.5.3" data-path="technologies.html"><ahref="technologies.html#use-python-in-rstudio"><iclass="fa fa-check"></i><b>5.5.3</b> Use Python in Rstudio</a></li>
<liclass="chapter" data-level="5.7.1" data-path="technologies.html"><ahref="technologies.html#what-is-path"><iclass="fa fa-check"></i><b>5.7.1</b> What is PATH?</a></li>
144
-
<liclass="chapter" data-level="5.7.2" data-path="technologies.html"><ahref="technologies.html#i-cannot-play-a-video-in-my-pc"><iclass="fa fa-check"></i><b>5.7.2</b> I cannot play a video in my PC</a></li>
146
+
<liclass="chapter" data-level="5.7.2" data-path="technologies.html"><ahref="technologies.html#i-cannot-play-a-video-on-my-pc"><iclass="fa fa-check"></i><b>5.7.2</b> I cannot play a video on my PC</a></li>
0 commit comments