Skip to content

Issue 1204: Graphs using Vega-Lite#56

Merged
arraydude merged 51 commits intostreamlit:developfrom
arraydude:1204-vegaLite
Sep 23, 2019
Merged

Issue 1204: Graphs using Vega-Lite#56
arraydude merged 51 commits intostreamlit:developfrom
arraydude:1204-vegaLite

Conversation

@arraydude
Copy link
Copy Markdown
Contributor

@arraydude arraydude commented Sep 6, 2019

This PR fixes streamlit/streamlit-old-private#1204

  • LineChart using Altair
  • BarChart using Altair
  • AreaChart using Altair
  • Updated unit tests
  • Updated e2e tests
  • DeltaGenerator has a delta_type property
  • add_rows method transforms the structure if it is needed depending on the delta_type
  • Fixing pylint from affected files

… 1204-vegaLite

# Conflicts:
#	frontend/cypress/integration/examples/core/area_chart.spec.ts
#	frontend/cypress/integration/examples/core/bar_chart.spec.ts
#	frontend/cypress/integration/examples/core/line_chart.spec.ts
Copy link
Copy Markdown
Collaborator

@kantuni kantuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only style issues.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this includes the changes we talked about. This code was going to move to DeltaGenerator, and we also needed to add this to add_rows.

Copy link
Copy Markdown
Contributor Author

@arraydude arraydude Sep 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inside _enqueue_new_element_delta the data is already transformed and i'm needing the original one , that's why i did not move that .

The logics for add_rows is added

@arraydude arraydude requested a review from tvst September 20, 2019 21:43
@domoritz domoritz changed the title Issue 1204: Graphs using VegaLite Issue 1204: Graphs using Vega-Lite Sep 20, 2019
… 1204-vegaLite

# Conflicts:
#	examples/mnist-cnn.py
#	frontend/cypress/snapshots/linux/2x/vega_lite_chart.spec.ts/st.vega_lite_chart -- supports different ways to get the same plot.snap.png
def on_batch_end(self, batch, logs=None):
rows = pd.DataFrame(
[[logs["loss"], logs["accuracy"]]], columns=["loss", "accuracy"])
[[logs["loss"], logs["acc"]]], columns=["loss", "acc"])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change back to "accuracy' and upgrade your Keras to the latest version. They changed this, apparently.

pip install keras --upgrade

Copy link
Copy Markdown
Contributor

@tvst tvst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 💯

@arraydude arraydude merged commit 0f1a774 into streamlit:develop Sep 23, 2019
@arraydude arraydude deleted the 1204-vegaLite branch September 23, 2019 23:11
tconkling added a commit to tconkling/streamlit that referenced this pull request Sep 25, 2019
# By Jonathan Rhone (3) and others
# Via GitHub
* develop:
  Text changes in ☰ menu and several CLI prompts (streamlit#180)
  add format option for slider widget and return texts for display values (streamlit#154)
  Merge ForwardMsg caching into develop  (streamlit#178)
  e2e test for magic (streamlit#172)
  Bart example update (streamlit#179)
  Pedantic CircleCI cleanup (streamlit#174)
  Fix overwriting elements in the sidebar (streamlit#181)
  update vega lite chart snapshot (streamlit#183)
  Stop react-markdown from converting "[foo]" to a link. (streamlit#151)
  Issue 1204: Graphs using Vega-Lite (streamlit#56)
  Removing uber demo from streamlit repo (streamlit#159)

# Conflicts:
#	lib/streamlit/DeltaGenerator.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants