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

executing, pure_eval, and futurecoder #51

Open
alexmojaki opened this issue Oct 3, 2020 · 2 comments
Open

executing, pure_eval, and futurecoder #51

alexmojaki opened this issue Oct 3, 2020 · 2 comments

Comments

@alexmojaki
Copy link

Hi! I just came across this project, it looks very impressive! I thought I'd point out a couple of libraries I've written which could help make it even more powerful, if you're willing to add dependencies:

For example this could allow you to get the AST node where an AttributeError occurred and the exact value that the user was trying to get an attribute of.

I'm currently developing futurecoder, a platform for free, interactive, high quality Python education for beginners. It includes convenient debugging with birdseye (which I noticed you starred) and snoop, an improved version of PySnooper (also starred). One feature I'd like to improve is tracebacks: alexmojaki/futurecoder#75

In particular integrating DidYouMean into futurecoder would be great, but beyond that there's a huge space of very cool possibilities, and I thought this would be right up your alley. Are you interested?

@SylvainDe
Copy link
Owner

Hello,

Thanks for your interest!
still need to wrap my head around this as I'd rather keep this free of external dependencies but on the other hand, the new possibilities could be very nice indeed...

Your projects sound very nice and I'd be happy if they were to use DidYouMean or parts of it. However, I'd rather warn you that this project is just an unpolished POC that went a bit wild and I am not really sure how usable it would be in a real life environment ;-) Let me know if you need some help in any way.

I'll try to come back to you asap with more details.

@alexmojaki
Copy link
Author

Awesome!

In the meantime, I have overhauled tracebacks in futurecoder and introduced DidYouMean. It's working nicely! Occasionally there are exceptions but I can suppress them easily, and if it gives an unhelpful or incorrect suggestion I don't think it'll hinder students much. Take a look at alexmojaki/futurecoder#77. You can try it out by clicking View Deployment and logging in with admin@example.com:admin.

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

No branches or pull requests

2 participants