From ac5b489a2d6e6bb9e227b86195558b4c44054034 Mon Sep 17 00:00:00 2001 From: KensteiN03 <71150235+KensteiN03@users.noreply.github.com> Date: Mon, 8 Nov 2021 10:31:54 -0500 Subject: [PATCH] primer test git --- .vscode/launch.json | 16 ++++++++++++++++ 1-04-BarCharts/bar1.py | 2 +- 2-01-DashLayout/layout1.py | 7 ++++--- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..a47208b0d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense para saber los atributos posibles. + // Mantenga el puntero para ver las descripciones de los existentes atributos. + // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "Python: Archivo actual", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/1-04-BarCharts/bar1.py b/1-04-BarCharts/bar1.py index 4180bc26b..10afdb64b 100644 --- a/1-04-BarCharts/bar1.py +++ b/1-04-BarCharts/bar1.py @@ -2,7 +2,7 @@ # A basic bar chart showing the total number of # 2018 Winter Olympics Medals won by Country. ###### -import plotly.offline as pyo +import plotlyk.offline as pyo import plotly.graph_objs as go import pandas as pd diff --git a/2-01-DashLayout/layout1.py b/2-01-DashLayout/layout1.py index 2c484e210..a60a1ffe8 100644 --- a/2-01-DashLayout/layout1.py +++ b/2-01-DashLayout/layout1.py @@ -2,6 +2,7 @@ import dash import dash_core_components as dcc import dash_html_components as html +import os app = dash.Dash() @@ -10,16 +11,16 @@ html.Div(children='Dash: A web application framework for Python.'), dcc.Graph( - id='example-graph', + id='example-graph',, figure={ - 'data': [ + 'data': [,, {'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'}, {'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'}, ], 'layout': { 'title': 'Dash Data Visualization' } - } + }, ) ])