Hi @robmarkcole . Nice app! I think it would be cool if the wide view was forced. The table would look better as a result?
Hi @TomJohn I agree that looks better! I was also hoping to make the url’s clickable, but despite experimentation, was not able to achieve that. Would you recommend making these changes in streamlit, or are there external plugins which would be suitable? Thanks!
1 Like
As for wide layout it is quite simple: st.set_page_config - Streamlit Docs
Regarding clickable links: maybe this will help?
Thanks I just implemented with wide table
Re that thread I tried the suggestions without success. Bit frustrating that the thread was then closed
1 Like
TomJohn
February 1, 2023, 10:10am
6
As this (i.e. links in a table) is a thing that I would like to able to do I will look into it in the evening have a great day!
1 Like
asehmi
February 1, 2023, 10:52am
7
@robmarkcole ,
I already found some useful articles with your app. Sure I could use their native search but more fun this way. So many possibilities to extend it…
Thanks.
2 Likes
The app has lots of scope for improvement, particularly making the search more fully featured (multiple queries, on category etc). Another idea is that in addition to github url, to find url for popular dataset locations like Zenodo.
TomJohn
February 1, 2023, 11:18am
9
@robmarkcole after some reasearch I see that it currently not possible to show links in st.dataframe, here is a link to github issue: Display clickable links in st.dataframe or st.table · Issue #983 · streamlit/streamlit · GitHub it is in open status.
As for workarounds it seems that there three options:
Use static table
Use plotly
Use AgGrid
all of above discussed here: How to display a clickable link pandas dataframe - #2 by mathcatsand
Just trying ag-grid, perhaps some special args are required but out of the box the links are not clickable
Same for st.table
TomJohn
February 1, 2023, 1:27pm
11
Yes, for AdGrid it requries some JS in cellRenderer How to display a clickable link pandas dataframe - #5 by edsaac
import streamlit as st
import pandas as pd
from st_aggrid import AgGrid, JsCode, GridOptionsBuilder
df = pd.DataFrame(
{
"Site": "DuckDuckGo Google Bing".split(),
"URL": "https://duckduckgo.com/ https://www.google.com/ https://www.bing.com/".split(),
}
)
gb = GridOptionsBuilder.from_dataframe(df)
gb.configure_column(
"URL",
headerName="URL",
cellRenderer=JsCode(
"""
function(params) {
return '<a href=' + params.value + ' target="_blank"> 🖱️ </a>'
}
"""
),
)
gridOptions = gb.build()
AgGrid(df, gridOptions=gridOptions, allow_unsafe_jscode=True)
1 Like
That approach does work, although it is not displaying the url which is a bit confusing
TomJohn
February 1, 2023, 1:40pm
13
if you replace return line to:
return '<a href=' + params.value + ' target="_blank">'+ params.value +'</a>'
it will work
2 Likes
Thanks, the result is very nice!
1 Like
TomJohn
February 1, 2023, 5:04pm
15
Btw. @robmarkcole you may consider custom subdomain for your app Deploy an app - Streamlit Docs
1 Like
Nice suggestion! Will the old url redirect?
I did make a feature request about redirecting renamed apps a while back if anyone is interested in voting on that. It’s something that pops up on the forum from time to time, but doesn’t seem to have any traction as a feature request yet.
opened 12:18AM - 17 Dec 22 UTC
type:enhancement
feature:community-cloud
### Problem
When someone renames an app on Streamlit Community Cloud, old links… break. (Mentioned on the forums but I couldn't find the official feature request here. Sorry if I missed it.)
### Solution
**MVP:** Redirect old links to the current one (or more specifically the last n links for some reasonable count n).
**Possible additions:** Allow users to manage a list of redirects for each app so they can make tweaks to their app url without worry. Especially if the number of redirects is small, this would allow users to prioritize which previous app url(s) are important to keep in the event of typos while editing.
**Preferred solution:** Even better, allow users to control app name redirects at the account level, and even be able to transfer them to other users, so that in the event of something significant like a re-deployment or transfer of ownership, there wouldn't be the risk of losing your app link.
---
Streamlit Cloud, Streamlit Community Cloud, Streamlit Share, Redirects, App URL, App Link, Renaming
---
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
**If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.**
1 Like
I have renamed the repo and tried to select the below name, but for some reason it is not available, despite there being no app with this name:
TomJohn
February 2, 2023, 8:07pm
20
For some reason custom domain settings page really does not like “hub” in app name Anyone knows why?