posted Nov 25, 2014, 6:41 PM by Le Tuan Anh
[
updated Jun 26, 2019, 11:37 PM
]
Milestones
- Absolute beginners
- TO BE UPDATED
Running Python within the browser
Development tools
What you did
|
My suggestion
|
Naked Python or Python with IDLE |
Anaconda + Spyder (built-in) |
Python3 & Notepad++ |
Anaconda + VS Code | - Anaconda ✔️useable for non-geek
https://www.anaconda.com/download/
- Spyder (built-in with Anaconda) This works if all you need is to write short Python snippets. For projects, use VS Code/Anaconda (right below)
- Visual Studio Code with Anaconda. This setup should work on Linux, Mac or Windows. The idea is to use conda for Python and packages and Visual Studio for developing code (editing, debugging, unittest, etc.)
Read more here: Using Visual Studio Code
- Emacs + elpy: My recommended setup, because it's Emacs, it does everything. Read more here. ✔️my preferred setup
- Pyzo (Formerly was Interactive Editor
for Python, IEP) - Small & fast but powerful REPL. Great replacement for the crappy IDLE built-in with Python
http://www.pyzo.org/iep.html
- pyCharm (Community edition is Free) with code highlight, code completion, code refactoring, etc. Strong as a tank but slow.
- https://www.jetbrains.com/pycharm/download/
- Want something else?
Learning Python
Creating virtual environment for testing# create a folder to store multiple virtual environments
mkdir ~/.envs
# create a new virtual environment (change mytestenv to your desired name)
python3 -m venv ~/.envs/mytestenv
# activate the environment (do *NOT* forget the dot in front)
. ~/.envs/mytestenv/bin/activate
Easy rite?
Download
3rd libraries
Note: virtualenv and pip should be included in standard python distribution by default. Instead of using wrapper scripts (virtualenv or pip), one should use:
python3 -m venv envfoldername
python -m virtualenv envfoldername
python3 -m pip install packagename
python -m pip install packagename
Installing lxml
# Fedora
sudo dnf install libxml2-devel libxslt-devel python3-devel
# Ubuntu sudo apt-get install libxml2-dev libxslt-dev python-dev
Advanced topics
Interesting stuff for students of HG7030 class (Natural Language Processing for Linguists)
|
 Updating...
Ċ Le Tuan Anh, Oct 7, 2018, 11:47 PM
Ċ Le Tuan Anh, Oct 7, 2018, 11:46 PM
Ċ Le Tuan Anh, Nov 25, 2014, 6:49 PM
Ċ Le Tuan Anh, Nov 25, 2014, 6:49 PM
|