We had a standing room crowd with 15 Present! At the start of the meeting we had conversations on Android environments on a PC. A some ways of doing this: Chrome – The Verge APK, ArcWelder app – loads an Android app into chrome, google emulator for Android (free). We also talked about learning Python: Anaconda, codeacademy, https://www.codecademy.com/learn/learn-python. You need to be careful on these tutorial sites. For example the free course on CodeAcademy teaches Python2 which is old. You really want to learn Python3 so keep that in mind when you are looking at training sites and videos.
Darin Miller then took us on a great fly-over the world of Python using Anaconda and PIP for installing custom python applications. His presentation notes can be found at ps://sites.google.com/site/bcelinux/classroom-news/python
How To Install the Anaconda Python Distribution on Ubuntu 16.04
conda update –prefix /path/to/anaconda3
conda install pyodbc
Using the Jupyter Notebook, he demonstrated several snippets on implementing custom python packages.
import py file with command
Using Jupyter notebook, if a .py file is in the same directory as the notebook, the following command will import the file:
import mypythonfile as mpf
The same import command works when the package is installed via pip (python file no longer required to be in same directory). Paths can be specified for importing files, but they get a little messy.
# This is useful for reloading the package after making changes:
The autoreload commands work regardless if the python file is in the notebook directory or installed in the pip location
pip install custom . (current directory)
simple import simple
Other discussion points:
pyCharm vs kdevelop (camel case)
pep 8 (indentation rules)
Installing Jupyter Notebook using Anaconda/coda/pip
Running the Notebook
jupyter add python version
pep8 default formatting for python. (rules) tab
Other conversations after the presentation:
LinuxFest NW Presentations now due!
KDE 17.10 KDE Neon
Dell Laptop 4K display
mysql replication on Centos 5.
updating the virtualenv
openBSD Linux – 1st Choice, very particular
Clint’s Notes (Meeting and post meeting)
Installing PyCharm Community on 32 or 64 bit Fedora 21/22/23
As root user, create a file pycharm.repo in /etc/yum.repos.d/
and add below content and save the .repo file
name=Copr repo for PyCharm owned by phracek
Now to install pycharm community version, execute below commands
dnf copr enable phracek/PyCharm
dnf install pycharm-community
PyCharm Community is pretty cool. It uses the latest Python (as they say “Found It!”) and very powerful, a real programming enviroment. Starting a new project, it automatically creates a new virtual environment for you. Awesome.
Ubuntu 17.10 Updates:
Still a pain to install and synaptic is just one of may gnome compitble apps that do not run in the default wayland enviroment such as synaptic. However the python rewards are great in array of tools available including PyCharm (Professional – 30 day free license, Educational, and Community which is free)
PyCharm had some challenges in getting it to run my code but now resolved. One of the biggest issues is getting the right python version environment/interpreter. Anaconda has its own implemenation of Python3 and getting Python2 in Anaconda’s Jupyter Notebook is a bit strange since Jupyter doesn’t really support Python2 in the current release.
==> Update Notice: 17.10.1 is a new point release that may have fixed the installation problem in addition to fix the issue of “corrupting the bios” on some computers. All the links for the various versions of Ubuntu (Mate, XFCE, LXDE), have also been updated to 17.10.1. <==
Some of my history:
19 apt install snap
20 snap install pycharm-community –classic
27 apt install kdevelop
28 apt install idle3
29 apt install cinnamon-desktop-environment
Note: 17.10 doesn’t install snap automatically so if you try to use the Ubuntu Software tool, a lot of applications fail to install including PyCharm-Comunity. Also, I had to use synaptic (xorg login) to install additional kdevelop python bits not installed by defaut using apt.
tinslecl@ubuntu1710-M4600:~$ pip –version
pip 9.0.1 from /home/tinslecl/anaconda3/lib/python3.6/site-packages (python 3.6)
tinslecl@ubuntu1710-M4600:~$ python –version
Python 3.6.3 :: Anaconda custom (64-bit)
I have built a fairly complete python programming workstation which includes Anaconda/Conda, jupyter notebook, eclipse ide and RStudio… I purpose in learning Python is to convert my bash scripts that “parse” files to python3.6. If there is interest, I will share work with the group at our February meeting. Let me know if this would be of interest.
Our next meeting will be on February 20th at the Boise Library! Ustick and Cole Branch, 7557 W. Ustick Rd, Boise at 6:30 PM, in the Bitterbrush Conference Room which is directly behind the Circulation Desk in the Library.