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

Linux Command Line without Password

Edit /etc/sudoers and insert below statement at the end of this file

username ALL=(ALL) NOPASSWD: ALL

unetbootin - Live usb creator

UNetbootin is a good tool for creating live usb, you can install it via apt

sudo apt install unetbootin

TensorFlow on Ubuntu 16.10


  • Installation

  • A note for installing tensorflow under ubuntu 16.10 with nvidia GTX-750 Ti graphic card
    Install the following packages
    sudo apt install python-pip python-dev libcupti-dev libcublas8.0 nvidia-cuda-dev nvidia-cuda-toolkit
    Install tensorflow GPU version
    pip install --upgrade tensorflow-gpu
    Download cudnn from NVIDIA website (you need to register a account before download it)
    Extract the file and execute below commands
    sudo cp -P include/cudnn.h /usr/include sudo cp -P lib64/libcudnn* /usr/lib/x86_64-linux-gnu/ sudo chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
  • Reference
  • TensorFlow official website for installation Nvidia officiail website for installation

    Orange - data analysis tool

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