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

Needs an integrated help function #18

Open
s-edwards opened this issue Aug 30, 2013 · 3 comments
Open

Needs an integrated help function #18

s-edwards opened this issue Aug 30, 2013 · 3 comments

Comments

@s-edwards
Copy link
Member

It would be nice to have a built-in help function/command reference like JES, but pythy doesn't have it. Since some textbooks actually use this style of feature, it would be nice to support.

@allevato
Copy link
Member

Would be nice to write a simple script that could auto-generate this from a Python installation; basically just import some modules, iterate over all the functions, and do some processing of their doc attributes to generate a documentation database. That would cover most of the built-ins. Could maybe do the same for media comp using the Python source for that module from JES?

@s-edwards
Copy link
Member Author

That's a good idea. What would the UI be? An interactive help() function on the console? How easy would it be to add clickable function references in the code mirror area? These could either pop up the help info, or open the corresponding on-line python doc for library functions.

@allevato
Copy link
Member

There are two different use cases that we need to consider:

  • "Intellisense"-like popup help as the user types (IDLE has this)
  • General documentation lookup through a GUI or REPL

The CodeMirror website has some good examples of doing auto-completion and just general recognition and hyperlinking of functions/classes, if I remember correctly, so both of those should probably be doable without an enormous amount of work. Both could involve using a popup bubble to display the information about the function, with a link to more detailed docs.

Adding a help() function to the console once it can be turned into an actual REPL would be nice, but I'm not sure students would use that as much as the first two.

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

No branches or pull requests

2 participants