Skip to main content
Question

How do I upload an html file to an analysis, using pycelonis?

  • January 27, 2022
  • 4 replies
  • 4 views

How do I upload an html file to an analysis, using pycelonis?

4 replies

Hello Seshadrinath,

 

What do you mean by uploading file to an analysis?

Do you mean any html file, html file containing some data, or html file containing generated technical documentation, in order to import variables etc.?

Could you tell what's the output you want to get?

 

Best Regards,

Mateusz Dudek


  • Author
  • Level 1
  • 2 replies
  • January 27, 2022

Mateusz, Thanks you for your replying.

I used python to do an analysis and its output is created in html format. It contains text and couple of charts. You can consider it as a report. I want to make this report available in Celonis analysis , as a report for users to read.


Hello,

 

So you've created a static report (not interactive)? I think there's no any way to present data from html file in that case. The only 2 things you can try is to:

 

1) Get data before generating report to HTML, place it in dataframe and push as data source for the charts built in the analysis.

https://github.com/celonis/pycelonis-examples/blob/main/01_use_pycelonis/01_misc/00_working_in_%20r_with_celonis.ipynb

https://github.com/celonis/pycelonis-examples/blob/main/01_use_pycelonis/00_basics/03_pushing_data.ipynb

 

2) Try to convert it to image and upload the image, but it will be completely not interactive (create_image_upload(Path)).

https://celonis.github.io/pycelonis/reference/pycelonis.celonis_api.process_analytics.analysis.html#pycelonis.celonis_api.process_analytics.analysis.BaseAnalysis.create_image_upload

 

Best Regards,

Mateusz Dudek


  • Author
  • Level 1
  • 2 replies
  • January 27, 2022

Thanks Mateusz. Appreciate your response.