Skip to content

Conversation

@AnOctopus
Copy link
Contributor

This functionality used to exist, but stopped being called at some point.
The check is executed in the DeltaGenerator, because that is one of the few
things that will almost certainly be used by a user who is just importing the library.

Issue: #127

This functionality used to exist, but stopped being called at some point.
The check is executed in the DeltaGenerator, because that is one of the few
things that will almost certainly be used by a user who is just importing the library.
@AnOctopus AnOctopus requested a review from a team January 22, 2021 18:54
Copy link
Contributor

@karriebear karriebear left a comment

Choose a reason for hiding this comment

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

looks good
image

"""Allows us to create and absorb changes (aka Deltas) to elements."""
from typing import Optional, Iterable, List

import streamlit as st
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just import _maybe_print_use_warning instead of everything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could, but this is how the style guide prefers

Copy link
Contributor

@karriebear karriebear Jan 25, 2021

Choose a reason for hiding this comment

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

Hmm I want to say this would be a good exception for that but I'm not strongly tied to it

@AnOctopus AnOctopus merged commit 5ffc243 into develop Jan 25, 2021
@AnOctopus AnOctopus deleted the feature/direct-run-warning branch January 25, 2021 22:56
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 25, 2021
* develop:
  Display a warning when not run via `streamlit run` (streamlit#2643)
  Extract a shared radio component for use within our UI (streamlit#2657)
  🔧 "Run on save" now defaults to true (streamlit#2641)
  Bump year to 2021 in license headers (streamlit#2654)
  Switched react-katex package (streamlit#2619)
  Don't add license headers for files in node_modules and cypress folders (streamlit#2655)
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.

3 participants