Log into your server with ssh, something like
ssh -i "my_secret.pem" ubuntu@12.123.12.123If it's a new server, you'll need to install a few things.
Install conda with
| # install chromium, its driver, and selenium | |
| !apt update | |
| !apt install chromium-chromedriver | |
| !pip install selenium | |
| # set options to be headless, .. | |
| from selenium import webdriver | |
| options = webdriver.ChromeOptions() | |
| options.add_argument('--headless') | |
| options.add_argument('--no-sandbox') | |
| options.add_argument('--disable-dev-shm-usage') |
Log into your server with ssh, something like
ssh -i "my_secret.pem" ubuntu@12.123.12.123If it's a new server, you'll need to install a few things.
Install conda with
| """ | |
| Shows how to do a cross join (i.e. cartesian product) between two pandas DataFrames using an example on | |
| calculating the distances between origin and destination cities. | |
| Tested with pandas 0.17.1 and 0.18 on Python 3.4 and Python 3.5 | |
| Best run this with Spyder (see https://github.com/spyder-ide/spyder) | |
| Author: Markus Konrad <post@mkonrad.net> | |
| April 2016 |
| ## | |
| # Create a figure space matrix consisting of 3 columns and 2 rows | |
| # | |
| # Here is a useful template to use for working with subplots. | |
| # | |
| ################################################################## | |
| fig, ax = plt.subplots(figsize=(10,5), ncols=3, nrows=2) | |
| left = 0.125 # the left side of the subplots of the figure | |
| right = 0.9 # the right side of the subplots of the figure |
| System: Host: Vostro-5470 Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0) | |
| Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.3) dm: mdm Distro: Linux Mint 18.1 Serena | |
| Machine: System: Dell (portable) product: Vostro 5470 Chassis: type: 8 v: 0.1 | |
| Mobo: Dell model: 019TFD v: A01 Bios: Dell v: A11 date: 01/21/2015 | |
| CPU: Dual core Intel Core i5-4210U (-HT-MCP-) cache: 3072 KB | |
| flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9577 | |
| clock speeds: min/max: 800/2700 MHz 1: 1699 MHz 2: 1700 MHz 3: 1699 MHz 4: 1699 MHz | |
| Graphics: Card-1: Intel Haswell-ULT Integrated Graphics Controller bus-ID: 00:02.0 chip-ID: 8086:0a16 | |
| Card-2: NVIDIA GK208M [GeForce GT 740M] bus-ID: 09:00.0 chip-ID: 10de:1292 | |
| Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1366x768@60.06hz |