brief-leather-11096
01/03/2023, 4:56 PM@task(disable_deck=False)
def display_distribution():
from sklearn.datasets import load_iris
import matplotlib.pyplot as plt
import plotly.express as px
li = load_iris()
iris_df = pd.DataFrame(data=li['data'],columns=li['feature_names'])
fig = px.histogram(iris_df['sepal length (cm)'])
deck = flytekit.Deck("Petal Distribution", fig.to_html())
deck.append(fig.to_html())
flytekit.current_context().default_deck.append(fig.to_html())
return
@workflow
@setup_wf(before=init_wf)
def demo_spark3_model_workflow():
demo_model_obj = init_model_object()
message = sub_workflow.simple_sub_wf(num_his=5)
print_sub_wf_message(message=message)
display_distribution()
In the display_distribution
task, I'm loading the iris dataset, creating a plotly histogram, then sending the html of that figure to the Flyte default deck as well as a custom deck, as outlined in the tutorial. When I deploy and run this workflow, it completes the run with no errors but I'm not able to see a "Deck" button anywhere like in the tutorial (attached is a screenshot to show that).
I'm wondering if this feature has been changed or deprecated? Any insight on this is much appreciated!hallowed-mouse-14616
01/03/2023, 5:37 PMhallowed-mouse-14616
01/03/2023, 5:37 PMhallowed-mouse-14616
01/03/2023, 5:37 PMglamorous-carpet-83516
01/03/2023, 5:39 PMbrief-leather-11096
01/03/2023, 5:44 PMbrief-leather-11096
01/03/2023, 6:03 PMRUN pip3 install flytekit>=0.30.3
RUN pip3 install --no-deps flytekitplugins-spark
glamorous-carpet-83516
01/03/2023, 6:44 PMbrief-leather-11096
01/03/2023, 6:49 PMbrief-leather-11096
01/10/2023, 4:02 PMlabels:
<http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteconsole
<http://helm.sh/chart|helm.sh/chart>: flyte-core-v0.1.10
Config map:
labels:
<http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteconsole
<http://helm.sh/chart|helm.sh/chart>: flyte-core-v0.1.10
Deployment:
containers:
- image: "<http://cr.flyte.org/flyteorg/flyteconsole:v1.1.0|cr.flyte.org/flyteorg/flyteconsole:v1.1.0>"
Maybe I need to try and upgrade the flyte-core version as well as the image we're pulling? Thanks for any insight!hallowed-mouse-14616
01/10/2023, 4:36 PMbrief-leather-11096
01/10/2023, 5:22 PM