You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .hvplot namespace is dynamically mounted on the data type of the imported source. For example, importing hvplot.pandas dynamically adds the hvplot property to pd.DataFrame. This dynamic approach makes it totally invisible to type checkers, typing df.hvplot in VS Code for instance gives no hint to the user. Given how important typing has become in Python, that's pretty bad! Note that the situation is much better when the code is executed in an IPython context.
I don't know if there's a way to fix that just using Python typing? If there's none, we should find and document a way for users to get a better typing experience using hvPlot. For example, this is already much better:
This discussion was converted from issue #1486 on May 23, 2025 06:57.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
.hvplot
namespace is dynamically mounted on the data type of the imported source. For example, importinghvplot.pandas
dynamically adds thehvplot
property topd.DataFrame
. This dynamic approach makes it totally invisible to type checkers, typingdf.hvplot
in VS Code for instance gives no hint to the user. Given how important typing has become in Python, that's pretty bad! Note that the situation is much better when the code is executed in an IPython context.I don't know if there's a way to fix that just using Python typing? If there's none, we should find and document a way for users to get a better typing experience using hvPlot. For example, this is already much better:
Note: It's probably best to recommend importing and using
hvPlot
instead ofhvPlotTabular
.Related to #893
Beta Was this translation helpful? Give feedback.
All reactions