Dataku 12: Do Streamlit Code Studios only support Streamlit versions compatible with Python 3.7?

info-rchitect
info-rchitect Registered Posts: 189 ✭✭✭✭✭✭

Hi,

I checked out our default Streamlit Code Studio template and see this on 12.1:

dataiku_12p1_streamlit_code_studio.png

If so, this is a non-starter for us. We have to be able to use Python 3.8 and above. Streamlit itself even says they do not support Python 3.7.

From the link:

Streamlit currently supports versions 3.8, 3.9, 3.10, and 3.11 of Python.

I hope this is just a misunderstanding of the Code Studio template between me and my Dataiku admins.


Operating system used: Windows 10

Tagged:

Best Answer

  • Sarina
    Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 317 Dataiker
    Answer ✓

    Hi @info-rchitect
    ,

    If you don't want to use the built-in dedicated code environment, you can simply toggle the "Code env mode" from "Generate a dedicated code env" (where the code env will be generated automatically for you) to "Use an added code env to this template":

    Screenshot 2023-09-15 at 1.43.21 PM.png

    Then you can simply point to your Python 3.8 or Python 3.8 code environment. You'll also need an "Add code environment" block that adds your code environment to the template as well.

    Please note that you will need to make sure to add the streamlit package in your Python 3.8 or 3.9 code environment list of packages to install.

    I hope that helps!

    Thank you,
    Sarina

    "

Setup Info
    Tags
      Help me…