Skip to main content
Answer

Streamlit app is not deployed via cdf toolkit

  • September 9, 2025
  • 3 replies
  • 40 views

Marwen TALEB
MVP

Hello, 

 

We recently migrating the way of deployment of Streamlit App in our cdf toolkit project. Before we used to deploy our streamlit app by creating a file in a dedicated dataset. Now we use out of box way of deploying Streamlit Apps provided by cdf toolkit  (this was not available before). 

 

When changing to this way, we notice that the app is only deployed using “--include streamlit” option.

i.e: when not using the “--include streamlit” cdf toolkit the deploy summary is the following: 

 

 

 

however, we notice it is a previous version that has been deployed! 

 

when using “--include streamlit”: summary is the following

 

And the App latest version is deployed as expected.

 

Toolkit Version used is '0.6.20'.

 

Are we missing something? Could you please take a look at this? 

 

Thanks!

 

 

 

 

 

 

Best answer by Anders Albert

Nice, that was was use of the newly released 0.6.20. If you run with the `--verbose` flag on, you can see which comparison Toolkit is doing. It is hard to understand what the difference between your cdf deploy and cdf deploy --include streamlit calls were based on the information available above.

3 replies

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • Answer
  • September 9, 2025

Nice, that was was use of the newly released 0.6.20. If you run with the `--verbose` flag on, you can see which comparison Toolkit is doing. It is hard to understand what the difference between your cdf deploy and cdf deploy --include streamlit calls were based on the information available above.


Marwen TALEB
MVP
  • Author
  • MVP
  • September 9, 2025

Hello ,

I like the verbose feature here is the output for streamlit app deployment between the two methods: 

 

with include: 

 

╭──────────────── Streamlit apps: petrolink_wellview_manual_matching ─────────────────╮│ ---                                                                                 ││                                                                                     ││ +++                                                                                 ││                                                                                     ││ @@ -1,5 +1,8 @@                                                                     ││                                                                                     ││ +cogniteToolkitAppHash: aae9b2e6                                                    ││  creator: marwen.taleb@totalenergies.com                                            ││ +dataSetExternalId: ds_streamlit_apps                                               ││  description: Well and Wellbore matching app from Wellview to Petrolink datasources ││ +entrypoint: main.py                                                                ││  externalId: petrolink_wellview_manual_matching                                     ││  name: Petrolink Wellview Manual Matching                                           ││  published: true                                                                    │╰─────────────────────────────────────────────────────────────────────────────────────╯Deploying 1 Streamlit apps to CDF... Streamlit apps: Updated 'petrolink_wellview_manual_matching'

 

without include :

 

Deploying 1 Streamlit apps to CDF... Streamlit apps: Unchanged 'petrolink_wellview_manual_matching'╭────────────────── file metadata: petrolink_wellview_manual_matching ──────────────────╮│ ---                                                                                   ││                                                                                       ││ +++                                                                                   ││                                                                                       ││ @@ -1,12 +1,12 @@                                                                     ││                                                                                       ││ -dataSetExternalId: ds_streamlit_apps                                                 ││ +dataSetExternalId: null                                                              ││  directory: /streamlit-apps/                                                          ││  externalId: petrolink_wellview_manual_matching                                       ││  metadata:                                                                            ││ -  cdf-toolkit-app-hash: aae9b2e6                                                     ││    creator: marwen.taleb@totalenergies.com                                            ││    description: Well and Wellbore matching app from Wellview to Petrolink datasources ││ -  entrypoint: main.py                                                                ││    name: Petrolink Wellview Manual Matching                                           ││ -  published: 'true'                                                                  ││ +  published: true                                                                    ││    theme: Light                                                                       ││ -name: Petrolink Wellview Manual Matching-source.json                                 ││ +mimeType: application/json                                                           ││ +name: petrolink_wellview_manual_matching.json                                        ││ +source: Toolkit                                                                      │╰───────────────────────────────────────────────────────────────────────────────────────╯Deploying 1 file metadata to CDF... file metadata: Updated 'petrolink_wellview_manual_matching'

 

so as understand one update the streamlit app metadata the other one the file metadata.

 


Marwen TALEB
MVP
  • Author
  • MVP
  • September 9, 2025

Found the issue ​@Anders Albert , thank you for the support!