Extract URL targets from Excel hyperlink cells #2949
daviewales
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some reason I don't understand, the
read_only=Trueargument toopenpyxl.load_workbook()strips hyperlink information:visidata/visidata/loaders/xlsx.py
Line 39 in 9eae2ef
If I patch the above line to remove
read_only=True, then I can open an Excel file with the--xlsx-meta-columnsflag, and extract the URL targets with the following Visidata command (where the original column name isLink:Would it make sense to remove the
read_only=Trueflag from the Visidata loader by default to enable this use case?Or at least to remove the
read_only=Trueflag when--xlsx-meta-columnsis specified?Would it make sense to make the URL accessible as a column attribute by default, even without
--xlsx-meta-columns?Compare the properties for a regular cell, vs a read-only cell in OpenPyXL:
Beta Was this translation helpful? Give feedback.
All reactions