Skip to content

Commit 2aad471

Browse files
committed
revamping chapters
1 parent 86848f7 commit 2aad471

21 files changed

+108
-6
lines changed

content/pages/02-development-environments/01-development-environments.markdown renamed to content/pages/02-development-environments/00-development-environments.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
title: Development Environments
22
category: page
33
slug: development-environments
4-
sortorder: 0201
4+
sortorder: 0200
55
toc: True
66
sidebartitle: 2. Development Environments
7-
meta: Development environments allow programmers to work with code. Learn more about development environments on Full Stack Python.
7+
meta: Development environments allow programmers to read, write and work with code.
88

99

1010
# Development Environments

content/pages/02-development-environments/02-text-editors-ides.markdown renamed to content/pages/02-development-environments/01-text-editors-ides.markdown

File renamed without changes.

content/pages/02-development-environments/03-vim.markdown renamed to content/pages/02-development-environments/02-vim.markdown

File renamed without changes.

content/pages/02-development-environments/04-emacs.markdown renamed to content/pages/02-development-environments/03-emacs.markdown

File renamed without changes.

content/pages/02-development-environments/05-sublime-text.markdown renamed to content/pages/02-development-environments/04-sublime-text.markdown

File renamed without changes.

content/pages/02-development-environments/06-pycharm.markdown renamed to content/pages/02-development-environments/05-pycharms.markdown

File renamed without changes.

content/pages/02-development-environments/07-jupyter-notebook.markdown renamed to content/pages/02-development-environments/06-jupyter-notebook.markdown

File renamed without changes.

content/pages/02-development-environments/08-shells.markdown renamed to content/pages/02-development-environments/07-shells.markdown

File renamed without changes.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
title: Virtual environments (virtualenvs)
2+
category: page
3+
slug: virtual-environments-virtualenvs-venvs
4+
sortorder: 0217
5+
toc: False
6+
sidebartitle: Virtualenvs
7+
meta: Virtual environments (virtualenvs) provide dependency isolation for your projects from external libraries.
8+
9+
10+
# Virtual environments (virtualenvs)
11+
Virtual environments, implemented by the library virtualenv and venv
12+
(added to Python standard library in Python 3.3 via
13+
[PEP 405](https://www.python.org/dev/peps/pep-0405/)), separate project
14+
dependencies, such as the [Django](/django.html) library code,
15+
from your code projects. For example, if you have three projects,
16+
one that uses Django 1.7, another that uses Django 2.0 and another project
17+
that does not use Django at all, you will have three virtualenvs that
18+
each contain those dependencies separated from each other.
19+
20+
21+
## How do virtualenvs work?
22+
Virtualenv provides dependency isolation for Python projects. A
23+
virtualenv creates a separate copy of the Python installation that is
24+
clean of existing code libraries and provides a directory for new
25+
[application dependencies](/application-dependencies.html) on a
26+
per-project basis. A programmer can technically use a virtualenv for many
27+
projects at once but that is not consider to be a good practice.
28+
29+
30+
### Virtual environment resources
31+
* [Package management in Python 2 or 3 (Linux and Mac) with virtualenv or venv](http://aaronsnitzer.com/writing/2016/04/27/virtualenv-and-pyvenv-beginner-tutorial.html)
32+
33+
* [There’s no magic: virtualenv edition](https://www.recurse.com/blog/14-there-is-no-magic-virtualenv-edition)
34+
35+
* [Virtual environments dymystified](https://meribold.github.io/python/2018/02/13/virtual-environments-9487/)
36+
37+
* [What is the relationship between virtualenv and pyenv?](https://stackoverflow.com/questions/29950300/what-is-the-relationship-between-virtualenv-and-pyenv)
38+
39+
* [Setting up Python on a Unix machine (with pyenv and direnv)](https://mike.place/2017/python-pyenv/)
40+
41+
* [venv — Create Virtual Environments](https://pymotw.com/3/venv/)
42+
43+
* [Python development environment, 2018 edition](https://jacobian.org/writing/python-environment-2018/)
44+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
title: Environment variables
2+
category: page
3+
slug: environment-variables
4+
sortorder: 0218
5+
toc: False
6+
sidebartitle: Environment variables
7+
meta: Environment variables are modifiable system values that can be read by Python applications to affect a program's execution.
8+
9+
10+
# Environment variables
11+
Environment variables are modifiable system values that can be read
12+
by Python applications to affect a program's execution.
13+
14+
15+
### Environment variable resources
16+
* [Environment variables on Ubuntu Linux](https://help.ubuntu.com/community/EnvironmentVariables)
17+
18+
* [Why you shouldn't use ENV variables for secret data](https://diogomonica.com/2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/)
19+
20+
* [Environment variables in Windows](https://www.digitalcitizen.life/simple-questions-what-are-environment-variables)

0 commit comments

Comments
 (0)