gnome builder

Install flatpak package sudo add-apt-repository ppa:alexlarsson/flatpak sudo apt update sudo apt install flatpak
Install gnome builder via flatpak flatpak install --from https://git.gnome.org/browse/gnome-apps-nightly/plain/gnome-builder.flatpakref $ flatpak run org.gnome.Builder

cx_Freeze - make python program executable

  • Intro.

  • cx_Freeze is tool for making your python program as executable program under Linux, Mac OS and Windows operating system (similar with pyinstaller) I couldn't make it work well with one of my PyQt project. pyinstaller is my top choice of this kind tools.

  • Installation

  • pip install cx_freeze
  • Get started with cx_freeze

  • simply create a setup.py under your working directory and run below command to create executable program python setup.py build For the details of setup.py, please click below link to get the reference example http://cx-freeze.readthedocs.io/en/latest/distutils.html

pyinstaller - make python program executable

  • Installation
  • pip install pyinstaller
  • Run pyinstaller
  • switch to your program directory
    pyinstall your_program.py if you get the error message of "pyinstaller: command not found", you'd need to find out the installed path of pyinstaller
    sudo find / -name pyinstaller modify ~/.profile as your environment PATH variable
    $PATH = $PATH:/my/path/to log-out and login your account, it might works now!
  • Reference
  • http://www.pyinstaller.org/

jupyter notebook

  • Installation
  • skip below step if you have pip installed sudo apt install python3-pip jupyter-core jupyter-client jupyter-nbconvert install jupyter via pip pip3 install jupyter
  • Example
  • jupyter nbconvert --execute xxx.ipynb
Reference:
https://ipython.org/ipython-doc/1/interactive/notebook.html
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jupyter-notebook-to-run-ipython-on-ubuntu-16-04

opencc - open chinese convert

install opencc via apt sudo apt install opencc
example for convert chs to cht
opencc -i "input.txt" -o "output.txt"

Install python3.6 on Ubuntu 16.04

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6
sudo apt install python3.6-dev
sudo apt install python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3
sudo ln -s /usr/local/bin/pip /usr/local/bin/pip3


type python3 and pip3 -V to get version information

Orange - data analysis tool

Installation pip install orange3 Run orange python -m Orange.canvas