question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some example apps in this repo cannot be run as single file apps.

See original GitHub issue

Summary

I would expect it to be nice to have that most of the example apps in this repo can be run by users as reference examples without having to clone the run but for example using

streamlit run "https://raw.githubusercontent.com/streamlit/streamlit/develop/examples/apocrypha.py"

or the python exec command. This is not always the case. For example for the above file.

If the file cannot be run without the repo, then if possible it would be nice to add some error handling and message telling the user that it’s not intended to run this example on a stand alone basis.

Steps to reproduce

You can identify the tests that fails the exec command using the awesome-streamlit test runner

docker run -it -p 80:80 --entrypoint "streamlit" marcskovmadsen/awesome-streamlit:latest run test_runner_app.py

You can read more about the test runner at

https://github.com/marcskovmadsen/awesome-streamlit#streamlit-tests

The current results look like

image

Please note that the 404 failing files probably don’t exist any longer.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tvstcommented, Oct 21, 2019

Hi @MarcSkovMadsen , thanks for the bug report

We’re actually been meaning to remove all examples from that repo, and create a different repo just with examples. At which point we’d probably want o make sure the examples are a bit more interesting too 😄

And something else we should do is steal your idea from this bug report and make all examples runnable by URL.

So I’ll leave this bug open as a reminder to ourselves, but it’s unlikely we’ll spend time fixing the existing examples (since they’re going away soon).

0reactions
jrhonecommented, Dec 18, 2019

Can’t repro and no response from the user in a month, closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a single file for application deployment - .NET
NET Core 3.0, when a user runs your single file app, .NET Core host first extracts all files to a directory before running...
Read more >
How to run this android studio app from github? - Stack Overflow
Show activity on this post. It seems this is a library that is usually added as a dependency to another application. This library...
Read more >
Workspace and project file structure - Angular
You develop applications in the context of an Angular workspace. A workspace contains the files for one or more projects. A project is...
Read more >
Creating and deploying R Shiny applications - IBM
R contain instructions needed to build your app and provides a sample app the user can test run. You can choose to create...
Read more >
Run and Debug Java in Visual Studio Code
Visual Studio Code allows you to debug Java applications through the Debugger ... VS Code also supports for debugging single Java files without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found