-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Delete worksheets #26
Conversation
@danielpyon overall I like this. Thanks for handling! The CI failure we are getting seems to be a failing in a change made to the Mathics side recently. I have adjusted things there. However I am not currently seeing a "delete" button although I do see the worksheets I have: One other thing you might consider is describing this in the help system: But that woul be done on the Mathics repo side (for now until we get convert that to live here.) That would be in https://github.com/mathics/Mathics/blob/master/mathics/doc/documentation/1-Manual.mdoc#L987 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielpyon overall I like this. Thanks for handling!
However I am not currently seeing a "delete" button although I do see the worksheets I have:
The CI failure we are getting seems to be a failing in a change made to the Mathics side recently. I have adjusted things there. It looks like though you need to update this PR to have the adjusted code to kick in. But if you fix the problem I am seeing with the delete button not showing up, then I think this will fix the CI problem:
@danielpyon Hmm.... more information. That screenshot comes from google chrome. If I use firefox or opera, the delete button does appear. |
That's strange. For my machine, it works just fine. I will have to some more investigation. On a related note, the documentation doesn't seem to contain some of the functions like ParametricPlot. Additionally, the Import function does not work on my machine. This is why I think it may be a problem on my end, although I'm not sure what, since I simply cloned and built the repository. |
Ah, try refreshing your cache with Ctrl + F5 (in Chrome)? |
Thanks! - that worked! |
It might be because you haven't built the data for the doc on the Mathics side (which takes a bit of time). In the Mathics repo, right
Can you get help on the
|
That makes sense. How would I do this in a virtualenv? Help works, but for instance, the images aren't actually displayed. It's probably because I haven't gotten the latest Mathics version or something like that. |
When you build from git source you have to build the documentation. There is a GNU Makefile in the Mathics to simplify this and that is what
so you could run that from a command line of the Mathics source as well. virtualenv is just about where python and its packages are installed. It is totally separate from GNU make and only incidentally related to running that command above. When you download a package, the package should have the extracted doc inside the package. For example:
|
Whoops, yeah I was confused there. I forgot to run Thank you! |
@danielpyon FYI We are very weak on people contributing to the Django front-end which is why it isn't that featureful. Here are someome weaknesses, in case you can help out...
|
I will definitely check those out, though I was hoping to add some form of autocomplete. Is it okay if I work on that first and then look at those weak points? If autocomplete isn't high priority then I suppose I could just help with those issues directly. |
Of course since you are doing the work you can work on whatever interests you. Really good autocomplete is tricky. However there is some in mathicscript. See https://github.com/Mathics3/mathicsscript/blob/master/mathicsscript/termshell.py#L306-L362 |
Is there a way to get just the names of all functions from the documentation? I made a basic prototype here, which requires a list of all names to search for. I'm planning on having two data structures: one unchanging trie that contains all the builtin functions/constants and loads once on startup, and another one that changes every time the user defines something. That way, the autocomplete suggestions will include the locally declared stuff as well as the default stuff. |
Look at the Definitions class in Mathics/mathics/core/definitions.py and
|
You can look at the implementation of the built-in |
This adds deletion of worksheets. The user simply needs to click "delete" in the popup: