connygy

connygy

Install Jupyter Kernel

1. How to install ipython 3 kernel to jupyter? + install Anaconda 3 + copy “Jupyter notebook” symbol to desktop + right click -> “property” -> “start in” change to the folder which you want to begin with 2. How…

compare two lists

It is very easy to compare two lists in python, but it seems not so many people know it. Just use the `==` symbol in numpy, it will return a numpy array with boolean value, True means the position are…

break the long line in python

There are several methods to break the long string line in python. I think the triple-quoted “”” method is the easiest way. The reason is you can also for json object. myJson =””” { “result”: [{“short_description”: “I am getting bluescreen…

hide messages in RMD

If you write Rmd file, the messages are always very disturbing. There are two methods to avoid it: 1. Global method {r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE) 2. Local method suppressMessages(library(dplyr))

change R version

link is from default R adress: $which R /usr/bin/R it can be Force R Studio use the specific version: export RSTUDIO_WHICH_R=/usr/local/bin/R

The easiest way to update nodejs and npm

Linux: sudo npm cache clean -f sudo npm install -g n sudo n stable Windows: Methode 1: 1. Dowload and install the latest version of node.js 2. go the directory: C:\Program Files\nodejs npm install -g npm@latest Methode 2: 1. install…