Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python expressions] Add magic to Python expressions #750

Closed
frosencrantz opened this issue Oct 25, 2020 · 3 comments
Closed

[Python expressions] Add magic to Python expressions #750

frosencrantz opened this issue Oct 25, 2020 · 3 comments
Labels

Comments

@frosencrantz
Copy link
Contributor

Add the features of https://github.com/hauntsaninja/pyp to the commands that accept Python expressions.

It would be helpful if we could use all of the Python supplied modules without having to add lines to our .visidatarc

Some of the useful features:

  • auto import
  • some modules like math don't need to be qualified
  • before and after processing
  • looping variables
  • debugging for the magic in case it does unexpected things
@saulpw
Copy link
Owner

saulpw commented Nov 30, 2020

Interesting idea, @frosencrantz, I've never used the pyp library before. We can look into it at some point and see how it fits in.

Kondo'd for now.

@saulpw saulpw closed this as completed Nov 30, 2020
@frosencrantz
Copy link
Contributor Author

I've only used pyp a little. To me the most useful feature would be making it easier to access python modules with little effort as a user.

@geekscrapy
Copy link
Contributor

Just noting that pyforest looks to do the same thing so maybe another option:
https://pypi.org/project/pyforest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants