Repository navigation
Add live symbol autocompletion, signature help tooltip, and bracket auto-close to web notebook - #261
Open
KarataevDmitry wants to merge 2 commits into
Open
KarataevDmitry wants to merge 2 commits into
KarataevDmitry wants to merge 2 commits into
Conversation
…o-closing brackets to Mathics3 notebook
…s, and add endpoint tests
Member
|
Thanks for this.. I greatly appreciate it Again, right now I am not able to look at this in any detail or try it which I very much want to do. Possibly in a day or two I will be able to look at it closer, but it may take a week to get to this, unless @mmatera or someone else can look at this. |
Contributor
|
Thank you for looking at this. As rocky, I am currently busy, but I can try to look at it over the weekend. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds live symbol autocompletion, call-signature tooltips, and auto-closing brackets to the
mathics-djangoweb notebook (textarea.request), bringing the web frontend up to parity withmathicsscript's CLI completion experience:/ajax/completions/inmathics_django/web/views.py):mathics.core.load_builtin.builtins_dict(builtins_by_module+ loadedpymathics_builtins_by_module) andmathics.core.symbols.strip_context.<dt>'Func'[...]) andsummary_textfrom builtin docstrings, caches system completions across requests (invalidating automatically if newpymathicsmodules are loaded), and merges session-specificGlobal`` user symbols (evaluation.definitions.user, distinguishing functions viadownvalues/subvalues`).mathics_django/web/media/js/intellisense.js):textarea.requestcells (Tab/Enterto insert,Up/Downto navigate,Escto dismiss,Ctrl+Spacemanual trigger).Func[...].[...],{...},(...)and automatic refresh of user-definedGlobal`` symbols after cell evaluation (Shift+Enter`).mathics_django/test_django.py):CompletionsEndpointTestsverifying/ajax/completions/and prefix filtering (4/4tests passing viamanage.py test).