Skip to content

Instantly share code, notes, and snippets.

View cedarwood-insights's full-sized avatar

Mike Hawkins cedarwood-insights

View GitHub Profile
@cedarwood-insights
cedarwood-insights / knime_python_view_node_code_snippet.py
Last active February 19, 2021 16:32
Example python code used for the KNIME Python View node to demonstrate plot image generation using Plotly and Kaleido
# Import modules and functions
import plotly.express as px
from plotly.offline import plot
# Apply short name to input_table dataframe
df=input_table
# Define category labels
categoryList=list(df.columns)
@cedarwood-insights
cedarwood-insights / py36_knime_mjh_update.yaml
Last active February 20, 2021 22:07
KNIME Python 3.6 Conda Environment configured for Plotly Express and Kaleido
name: py36_knime_mjh_update
channels:
- conda-forge
- https://conda.anaconda.org/conda-forge/
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- arrow-cpp=2.0.0=py36hced866c_0
- asammdf=5.19.14=py_0