Important
TA-lib requires 2Gb of RAM. You can either:
- Upgrade your VM to a 2Gb RAM VM
- Use this guide to create a SWAP file (virtual memory) on the VM's SSD that is at least 2Gb: https://www.vultr.com/docs/setup-swap-file-on-linux
Important
TA-lib requires 2Gb of RAM. You can either:
In this section, we are going to show how to run a python script as a systemd service, allowing you to boot it at the start of a Linux machine and to maintain it alive.
We are going to use a very basic Telegram bot in order to test that our script will:
| """ | |
| This script is heavily inspired by the example provided by the developers of Arcas: | |
| https://github.com/ArcasProject/ArcasExamples/blob/initial_commits/scripts/scraping_num_articles.py | |
| """ | |
| import arcas | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| keywords = ["composite", "carbon", "fiber"] | |
| num_collect = 10 |
Seupt your Dietpi. Static IP. SSH.
Freqtrade v2019.9 with Python 3.7 and setup.sh
Python 3.7:
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
| sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y | |
| wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz | |
| tar xf Python-3.7.2.tar.xz | |
| cd Python-3.7.2 | |
| ./configure | |
| make -j 4 | |
| sudo make altinstall | |
| cd .. | |
| sudo apt-get install libffi-dev git libatlas-base-dev | |
| git clone https://github.com/freqtrade/freqtrade.git |
| from dolfin import * | |
| from mshr import * | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # https://comet-fenics.readthedocs.io/en/latest/demo/thermoelasticity/thermoelasticity_transient.html#References | |
| L = 1. | |
| R = 0.4 |
$ VBoxManage import ./UCS-Virtualbox-Demo-Image.ova --vsys 0 --eula accept
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /home/crohr/dev/ucs/./UCS-Virtualbox-Demo-Image.ova...
OK.
Disks: vmdisk1 53687091200 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized UCS-Demo-Image-virtualbox-disk1.vmdk -1 -1
...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully imported the appliance.
| # Forked by hand from https://raw.githubusercontent.com/milq/milq/master/scripts/bash/install-opencv.sh | |
| # KEEP UBUNTU OR DEBIAN UP TO DATE | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y dist-upgrade | |
| sudo apt-get -y autoremove | |
| # INSTALL THE DEPENDENCIES |
| all | |
| just | |
| being | |
| over | |
| both | |
| through | |
| yourselves | |
| its | |
| before | |
| o |
| from nltk.corpus import stopwords | |
| with open("./stopwords.txt",'w') as outFile: | |
| stop_words = set(stopwords.words('english')) | |
| for w in stop_words: | |
| outFile.write(w+"\n") | |
| outFile.close() |