From 45b5902d779dfe28ae159d23f5c37c8182669e5d Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Wed, 23 Feb 2022 18:01:01 -0500 Subject: [PATCH 1/6] update windows install just updating the guide for windows users to streamline the process as well as setting up vscode --- README.rst | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index 6efa1a5a..f427647b 100644 --- a/README.rst +++ b/README.rst @@ -74,18 +74,36 @@ for a development install:: install for tinas ***************** -for windows peeps you can start by getting `conda installed`_ -and the `C++ build toolz`_ on your system. +for windows peeps you can start by installing all the prerequisite software: +install git with all default settings - https://git-scm.com/download/win +install visual studio code default settings - select default profile for terminal as "cmd" (command prompt) - https://code.visualstudio.com/download +install anaconda all default settings - https://www.anaconda.com/products/individual +install microsoft build tools (check the box for Desktop development for C++) - https://visualstudio.microsoft.com/visual-cpp-build-tools/ then, `crack a conda shell`_ and run the following commands:: - conda create piker --python=3.9 - conda activate piker - conda install pip - pip install --upgrade setuptools - cd dIreCToRieZ\oF\cODez\piker\ - pip install -r requirements -e . - + mkdir code # create code directory + cd code # change directory to code + pwd # shows present working directory, should show code inside default user folder + git clone https://github.com/pikers/piker.git # downloads piker installation package from github + cd piker # change directory to piker + + conda create -n py39 # creates conda environment named py39 + conda activate py39 # activates py39 + conda install -c conda-forge python-levenshtein # in case it is not already installed + conda install pip # may already be installed + pip # will show if pip is installed + + pip install -e . -r requirements.txt # install piker in editable mode + piker -b kraken -b binance chart btcusdt.binance # command to load chart for test + + # FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wyatt\\AppData\\Roaming\\piker\\brokers.toml' + # navigate to file directory above (may be different on your machine, location should be listed in the error) + # create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' + + +now that piker is installed we can set up vscode as the default terminal for running piker and editing the code. +within vscode you are going to want cmd.exe as your default terminal. in order to look coolio in front of all ur tina friends (and maybe want to help us with testin, hackzing or configgin), install From 7037d04df42f0d577bf9535ea0a44c1c07e5a9f3 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Wed, 23 Feb 2022 18:13:44 -0500 Subject: [PATCH 2/6] Update README.rst --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index f427647b..c0915ecc 100644 --- a/README.rst +++ b/README.rst @@ -96,11 +96,11 @@ then, `crack a conda shell`_ and run the following commands:: pip install -e . -r requirements.txt # install piker in editable mode piker -b kraken -b binance chart btcusdt.binance # command to load chart for test - - # FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wyatt\\AppData\\Roaming\\piker\\brokers.toml' - # navigate to file directory above (may be different on your machine, location should be listed in the error) - # create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' - + +potential errors: +- FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\piker\\brokers.toml' +- navigate to file directory above (may be different on your machine, location should be listed in the error) +- create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' now that piker is installed we can set up vscode as the default terminal for running piker and editing the code. within vscode you are going to want cmd.exe as your default terminal. From 9ddaf0f4e7b9de2d0090726c4a929e985ad62237 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Wed, 23 Feb 2022 18:17:14 -0500 Subject: [PATCH 3/6] Update README.rst --- README.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index c0915ecc..de052dfc 100644 --- a/README.rst +++ b/README.rst @@ -75,10 +75,11 @@ for a development install:: install for tinas ***************** for windows peeps you can start by installing all the prerequisite software: -install git with all default settings - https://git-scm.com/download/win -install visual studio code default settings - select default profile for terminal as "cmd" (command prompt) - https://code.visualstudio.com/download -install anaconda all default settings - https://www.anaconda.com/products/individual -install microsoft build tools (check the box for Desktop development for C++) - https://visualstudio.microsoft.com/visual-cpp-build-tools/ + +- install git with all default settings - https://git-scm.com/download/win +- install visual studio code default settings - select default profile for terminal as "cmd" (command prompt) - https://code.visualstudio.com/download +- install anaconda all default settings - https://www.anaconda.com/products/individual +- install microsoft build tools (check the box for Desktop development for C++) - https://visualstudio.microsoft.com/visual-cpp-build-tools/ then, `crack a conda shell`_ and run the following commands:: @@ -98,9 +99,9 @@ then, `crack a conda shell`_ and run the following commands:: piker -b kraken -b binance chart btcusdt.binance # command to load chart for test potential errors: -- FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\piker\\brokers.toml' -- navigate to file directory above (may be different on your machine, location should be listed in the error) -- create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' +FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\piker\\brokers.toml' +navigate to file directory above (may be different on your machine, location should be listed in the error) +create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' now that piker is installed we can set up vscode as the default terminal for running piker and editing the code. within vscode you are going to want cmd.exe as your default terminal. From cb69e892182e2acfaf610a6c199e31c9d03376be Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Wed, 2 Mar 2022 09:21:09 -0500 Subject: [PATCH 4/6] Create test file --- Reference Files/test file | 1 + 1 file changed, 1 insertion(+) create mode 100644 Reference Files/test file diff --git a/Reference Files/test file b/Reference Files/test file new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/Reference Files/test file @@ -0,0 +1 @@ +test From e04a7dceb22a220a01199ac719d55e693dc78b36 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Wed, 2 Mar 2022 09:22:50 -0500 Subject: [PATCH 5/6] Delete Reference Files directory --- Reference Files/test file | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Reference Files/test file diff --git a/Reference Files/test file b/Reference Files/test file deleted file mode 100644 index 9daeafb9..00000000 --- a/Reference Files/test file +++ /dev/null @@ -1 +0,0 @@ -test From 9eefc3a521e8d150c4ceeec99c75eeb1cde84d67 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Sun, 17 Apr 2022 15:57:53 -0400 Subject: [PATCH 6/6] Update README.rst added instructions for setting up visual studio code --- README.rst | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/README.rst b/README.rst index de052dfc..40c438c7 100644 --- a/README.rst +++ b/README.rst @@ -77,39 +77,54 @@ install for tinas for windows peeps you can start by installing all the prerequisite software: - install git with all default settings - https://git-scm.com/download/win -- install visual studio code default settings - select default profile for terminal as "cmd" (command prompt) - https://code.visualstudio.com/download - install anaconda all default settings - https://www.anaconda.com/products/individual -- install microsoft build tools (check the box for Desktop development for C++) - https://visualstudio.microsoft.com/visual-cpp-build-tools/ +- install microsoft build tools (check the box for Desktop development for C++, you might be able to uncheck some optional downloads) - https://visualstudio.microsoft.com/visual-cpp-build-tools/ +- install visual studio code default settings - https://code.visualstudio.com/download + then, `crack a conda shell`_ and run the following commands:: mkdir code # create code directory cd code # change directory to code - pwd # shows present working directory, should show code inside default user folder git clone https://github.com/pikers/piker.git # downloads piker installation package from github cd piker # change directory to piker - conda create -n py39 # creates conda environment named py39 - conda activate py39 # activates py39 + conda create -n pikonda # creates conda environment named pikonda + conda activate pikonda # activates pikonda + conda install -c conda-forge python-levenshtein # in case it is not already installed conda install pip # may already be installed pip # will show if pip is installed pip install -e . -r requirements.txt # install piker in editable mode - piker -b kraken -b binance chart btcusdt.binance # command to load chart for test -potential errors: -FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\piker\\brokers.toml' -navigate to file directory above (may be different on your machine, location should be listed in the error) -create folder and copy and paste file or create a blank file using notepad --> 'C:\\Users\\user\\code\\data/brokers.toml' +test Piker to see if it is working:: + + piker -b binance chart btcusdt.binance # formatting for loading a chart + piker -b kraken -b binance chart xbtusdt.kraken + piker -b kraken -b binance -b ib chart qqq.nasdaq.ib + piker -b ib chart tsla.nasdaq.ib + +potential error:: -now that piker is installed we can set up vscode as the default terminal for running piker and editing the code. -within vscode you are going to want cmd.exe as your default terminal. + FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\piker\\brokers.toml' + +solution: -in order to look coolio in front of all ur tina friends (and maybe -want to help us with testin, hackzing or configgin), install -`vscode`_ and `setup a coolio tiled wm console`_ so you can start -living the life of the tech literate.. +- navigate to file directory above (may be different on your machine, location should be listed in the error code) +- copy and paste file from 'C:\\Users\\user\\code\\data/brokers.toml' or create a blank file using notepad at the location above + +Visual Studio Code setup: + +- now that piker is installed we can set up vscode as the default terminal for running piker and editing the code +- open Visual Studio Code +- file --> Add Folder to Workspace --> C:\Users\user\code\piker (adds piker directory where all piker files are located) +- file --> Save Workspace As --> save it wherever you want and call it whatever you want, this is going to be your default workspace for running and editing piker code +- ctrl + shift + p --> start typing Python: Select Interpetter --> when the option comes up select it --> Select at the workspace level --> select the one that shows ('pikonda') +- change the default terminal to cmd.exe instead of powershell (default) +- now when you create a new terminal VScode should automatically activate you conda env so that piker can be run as the first command after a new terminal is created + +also, try out fancyzones as part of powertoyz for a decent tiling windows manager to manage all the cool new software you are going to be running. .. _conda installed: https:// .. _C++ build toolz: https://