Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Russell Jarvis
ScienceAccess
Commits
b4f0140e
Commit
b4f0140e
authored
Dec 25, 2021
by
Russell Jarvis
💬
Browse files
update all
parent
87c6894a
Pipeline
#1602
failed with stages
in 4 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
science_access/enter_author_name.py
View file @
b4f0140e
...
...
@@ -357,12 +357,12 @@ def make_clickable(link):
# extract clickable text to display for your link
text
=
link
# .split('=')[1]
return
f
'<a target="_blank" href="
{
link
}
">
{
text
}
</a>'
df_links
[
"Web_Link"
]
=
contents
[
"Web_Link"
]
df_links
[
"Reading_Level"
]
=
contents
[
"Reading_Level"
]
df_links
.
drop_duplicates
(
subset
=
"Web_Link"
,
inplace
=
True
)
df_links
[
"Web_Link"
]
=
df_links
[
"Web_Link"
].
apply
(
make_clickable
)
df_links
=
df_links
.
to_html
(
escape
=
False
)
st
.
write
(
df_links
,
unsafe_allow_html
=
True
)
#
df_links["Web_Link"] = contents["Web_Link"]
#
df_links["Reading_Level"] = contents["Reading_Level"]
#
df_links.drop_duplicates(subset="Web_Link", inplace=True)
#
df_links["Web_Link"] = df_links["Web_Link"].apply(make_clickable)
#
df_links = df_links.to_html(escape=False)
#
st.write(df_links, unsafe_allow_html=True)
def
push_frame_to_screen
(
contents
,
readability_vector
):
# -> pd.DataFrame():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment