This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dash | |
| from dash.dependencies import Input, Output | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| from pandas_datareader import data as web | |
| from datetime import datetime as dt | |
| app = dash.Dash('Hello World', | |
| external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from selenium.webdriver.remote.webelement import WebElement | |
| import os.path | |
| # JavaScript: HTML5 File drop | |
| # source : https://gist.github.com/florentbr/0eff8b785e85e93ecc3ce500169bd676 | |
| # param1 WebElement : Drop area element | |
| # param2 Double : Optional - Drop offset x relative to the top/left corner of the drop area. Center if 0. | |
| # param3 Double : Optional - Drop offset y relative to the top/left corner of the drop area. Center if 0. | |
| # return WebElement : File input |