pycroscopy icon indicating copy to clipboard operation
pycroscopy copied to clipboard

Web applications

Open ssomnath opened this issue 4 years ago • 8 comments

Consider using streamlit or Pweave for deploying simple and elegant web applications. One example use case is @gduscher's idea of providing a quick visualizer of all data contained in a folder. Unlike a jupyter notebook, this might be a compact and tamperproof method for deploying novice or student focused applications.

ssomnath avatar May 04 '21 19:05 ssomnath

This is a good idea! I've been exploring Streamlit for some other work in our lab. There are some things to keep in mind with this idea, depending on the exact idea, one of which is that in my (limited) Streamlit experience the File I/O component is a little underpowered. But an app that walks through data locally hosted within the relevant repository might obviate that, and help show some specifics.

rajgiriUW avatar May 05 '21 01:05 rajgiriUW

Great to hear positive feedback about the Idea and streamlit, @rajgiriUW. I could swear I came across another package similar to streamlit but I can't seem to track it down. Please do let us know if you are aware of alternatives.

ssomnath avatar May 05 '21 01:05 ssomnath

Found the other package that is similar to streamlit - Pweave

ssomnath avatar May 11 '21 23:05 ssomnath

Found the other package that is similar to streamlit - Pweave

Looks like their last commit to master branch was 2 years ago. I wonder if this project is still active? image

ziatdinovmax avatar May 12 '21 01:05 ziatdinovmax

@ziatdinovmax Thanks for catching that. On second glance, Pweave appears to be an alternative to LaTeX rather than Jupyter notebooks or Streamlit.

ssomnath avatar May 12 '21 02:05 ssomnath

It looks like Streamlit is also one of the "officially" recommended ways to make examples/tutorials for ML research papers: image

ziatdinovmax avatar May 22 '21 21:05 ziatdinovmax

@rajgiriUW Can you possibly update us on the use of streamlit for web apps? We are looking for some way to utilize the interactive elements of Matplotlib in a web app, but streamlit only supports the % inline (static) versions. I have looked into other solutions, but they all have challenges.

ramav87 avatar Sep 10 '21 21:09 ramav87

I only used it for a web app version to process transistor data in our lab. I think there is a separate streamlit plotting method that allows more dynamic figures (like matplotlib interactivity) but haven't looked really into it. I can take a look.

rajgiriUW avatar Sep 10 '21 22:09 rajgiriUW