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
Hey, this is not an issue, just a question. Was wondering how you generate the examples in the README, and if (and how) you test them in the CI? (I imagine you need to manually parse the >>> and ... )
I would appreciate if you could point me to the code that handles this, thanks.
Good point, that should be fixed. I'll explain why it looks like that though. If you enter a multi-line command into the python prompt, that's what you see:
In the codebase, the function docstrings show these extra characters so as to mimic would it looks like running in terminal, but the html renders such that those characters aren't actually copied. See the example in keep_name: if you copy the code, only the relevant code portions are selectable:
It was probably intended to have the UI work this same way too, but it currently doesn't in the README.
So if I understand correctly, the examples in the README are written by hand and are not tested in the CI as of yet.
But I wonder how you can change the CSS of the text that matches a pattern, like ^(?:\.\.\.|>>>) (.*)$ to modify those characters to be non-selectable? not sure if its possible
Description
Hey, this is not an issue, just a question. Was wondering how you generate the examples in the README, and if (and how) you test them in the CI? (I imagine you need to manually parse the
>>>
and...
)I would appreciate if you could point me to the code that handles this, thanks.
(like this for example)
Link
https://github.com/pola-rs/polars?tab=readme-ov-file#python
The text was updated successfully, but these errors were encountered: