Search found 678 matches

by Daniel Wee
Mon 23 Apr 23 2018 4:23 pm
Forum: Projects
Topic: Object Recognition
Replies: 7
Views: 1175

Re: Object Recognition

by Daniel Wee
Thu 12 Apr 12 2018 1:17 pm
Forum: Other Stuff
Topic: Using Dash
Replies: 0
Views: 33

Using Dash

import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html app = dash.Dash() # define the layout of the page app.layout = html.Div([ dcc.Input(id='input', value='Enter something here!', type='text'), html.Div(id='output') ]) # defi...
by Daniel Wee
Thu 12 Apr 12 2018 12:40 pm
Forum: Other Stuff
Topic: Reading Google Sheets with python
Replies: 4
Views: 46

Re: Reading Google Sheets with python

import pandas as pd import numpy as np import gspread from oauth2client.service_account import ServiceAccountCredentials def normalize(ustr): retval = 0 if ustr != "" and str(ustr).isdigit(): retval = int(str(ustr).replace("-","0")) return retval def parse_sheet(wks): columns=['date','e1','e2','e3'...
by Daniel Wee
Wed 11 Apr 11 2018 11:31 pm
Forum: Other Stuff
Topic: Reading Google Sheets with python
Replies: 4
Views: 46

Re: Reading Google Sheets with python

#!/usr/bin/env python import gspread from oauth2client.service_account import ServiceAccountCredentials #This extended scope is needed for this to work scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive'] credentials = ServiceAccountCredentials.from_json_keyfil...
by Daniel Wee
Wed 11 Apr 11 2018 11:13 pm
Forum: Other Stuff
Topic: Reading Google Sheets with python
Replies: 4
Views: 46

Re: Reading Google Sheets with python

sudo -H pip install oauth2client PyOpenSSL gspread --upgrade
by Daniel Wee
Wed 11 Apr 11 2018 11:07 pm
Forum: Other Stuff
Topic: Reading Google Sheets with python
Replies: 4
Views: 46

Re: Reading Google Sheets with python

1. Go to the Google APIs Console 2. Create a new project 3. Click Enable API. Search for and enable the Google Drive API 4. Create credentials for a Web Server to access Application Data 5. Name the service account and grant it a Project Role of Editor 6. Download the JSON file 7. Copy the JSON file...
by Daniel Wee
Wed 11 Apr 11 2018 10:40 pm
Forum: Other Stuff
Topic: Reading Google Sheets with python
Replies: 4
Views: 46

Reading Google Sheets with python

https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html?utm_source=youtube&utm_medium=video&utm_campaign=youtube_python_google_sheets https://github.com/burnash/gspread Get credentials from:- https://console.developers.google.com/apis/credentials?proj...
by Daniel Wee
Wed 11 Apr 11 2018 10:24 pm
Forum: Other Stuff
Topic: Configuring UP2
Replies: 6
Views: 90

Re: Configuring UP2

Dash Basic script as follows:- #!/usr/bin/env python import dash import dash_core_components as dcc import dash_html_components as html app = dash.Dash() app.layout = html.Div('Dash Tutorials') if __name__ == '__main__': app.run_server(debug=True, host='0.0.0.0', port=8050, threaded=True) Remember ...
by Daniel Wee
Wed 11 Apr 11 2018 10:11 pm
Forum: Other Stuff
Topic: Configuring UP2
Replies: 6
Views: 90

Re: Configuring UP2

Python Stuff

sudo apt install python-pip
sudo -H pip install --upgrade pip
sudo -H pip install dash dash-renderer dash-html-components dash-core-components plotly
by Daniel Wee
Tue 10 Apr 10 2018 10:54 pm
Forum: Other Stuff
Topic: Configuring UP2
Replies: 6
Views: 90

Re: Configuring UP2