Streamlit and GitHub

When trying to create a new app in streamlit, it requires to log in to github, and also authorize it, but also give access to some apps. In this case, Interactive Brokers, which is for stock trading and not related to streamlit and git hub. Why is this there? Thanks.

Hi @syracusepro welcome to the forum!

Could you share a screenshot showing this. Thanks!

See the attached picture and thanks a lot for the help.

Thanks for the screenshot, could you also share the link to the GitHub repo so that we can look into this further. Also, have you used Interactive Brokers in this or previous repo on GitHub?

I am confused here.

There is no repo. This happens when trying to create the first app on dashboard.

Interactive brokers is my actual broker for stock trading, and nothing related to this.

So, not sure what it is coming asking for permissions.

I was looking for a way not to include interactive brokers, but there was none.

In short words, the issue happens when logging in into Sltreamlit, then ask to log in into Github, then ask to authorize those apps in order to create my first one.

Thanks.

I believe the default behavior is to ask for permission for all of the organizations you are a part of, but you should be able to deselect those organizations before you press “Authorize”.

There is a check mark as per picture, but unable to uncheck. By clicking on that, a page showing some information about related criteria or information about authorization etc, is shown, but not as easy to just uncheck. Will try again and see.

Hi @syracusepro, in this case, InteractiveBrokers is a GitHub organization that your GitHub account belongs to. When you click “Authorize streamlit”, you’re just authorizing us to request access to that GItHub organization (this is to enable developers to deploy apps from repos owned by their GitHub organizations).

If “InteractiveBrokers” has their GitHub organization settings configured to restrict the access that third-party applications have to the org’s repositories, you can simply click “Authorize streamlit”, and unless the org admin grants Streamlit access, Streamlit won’t have access to any of the repos owned by that org.

Alternatively, you can create a new GitHub account which is not a member of that organization, and use that account for deploying apps with Streamlit Cloud.

Hope this helps clarify and let me know if you have any other questions.

Best,

Caroline

1 Like

I just removed the two organizations at the cost of losing access to them. No longer having the unknown security access grant issues now. I was able to test a sample app on streamlit, but found out I could also do the same by just testing the code from Spyder then on a browser. Not sure about the complication of Github, etc.

You can see now how little I know about GitHib, but I am extremely interested on Streamlit for Stock charts and financial applications.

For example, I had a problem where TradingView available code for widgets were not displaying properly on streamlit.

Found I had to add some size properties at the end of the stremlit code and now displaying fully open on browser.

The problem is the chart is not in the center of the browser unless I select from the browser streamlight menu, wide mode or something like that.

But if there is any way to code to display on the center automatically, that would be great.

I will play a lot with streamlit and TradingView widgets with available sample code and modify accordingly, but so far, I am very enthusiastic.

Thanks a lot for the help.

1 Like

Hi @syracusepro, glad you figured out the GitHub issue. The widget centering issue is a bit outside the scope of this thread, but definitely check out this related thread for that question.

Thanks.