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
Adding the SimpleJSON module to SAGE #1510
Comments
comment:2
Spkg can be found here: http://sage.math.washington.edu/home/tkosan/misc/simplejson-1.7.3.spkg Test with the following code:
|
comment:3
The package is relatively small and MIT license, so I would say it's suitable for inclusion. How does it handle Cython classes? |
comment:4
I think some sort of general voting and discussion should occur before including any new packages standard in Sage, especially ones that don't cover some very clear mathematical area that is completely unconvered by Sage (e.g., R and PolyBori did address a clear mathematical area). In particular, it is
Remember, every package that goes into Sage will cause Michael Abshoff, and me, and others headaches at some point, and will add to the horrendous problem we already have with packages getting out of date with upstream. Also, perhaps there should be somebody -- probably Ted in this case -- who very clear volunteers to keep the package up to date for the next year, and find somebody to take over if they can't continue. The above was quick brainstorming. It is not meant to be some well thought out procedure, which is something I don't think we have yet. -- William |
comment:5
Replying to @robertwb:
According to the home page, it should handle them OK. From the webpage:
These are universal data structures. Virtually all modern programming languages support them in one form or another. It makes sense that a data format that is interchangable with programming languages also be based on these structures. |
comment:6
This doesn't quite answer my question--for pickling one has to implement |
comment:8
This spkg is relevant due to the patches at #5564. Cheers, Michael |
comment:10
From #5564, an updated simplejson spkg is at http://sage.math.washington.edu/home/mhansen/simplejson-2.0.9.spkg |
comment:11
I've created an updated updated spkg: http://sage.math.washington.edu/home/drake/simplejson-2.0.9.spkg This spkg has the proper Mercurial repo, spkg-install, spkg-check, SPKG.txt, and so on. I don't know about pickling and so on, except that as it stands, if you do something like |
comment:13
This could be closed if #6359 gets closed since Python 2.6 comes with a json module. |
comment:14
Yep, I think we can close this now that we're at Python 2.6. |
I am using JSON objects (http://json.org) as a language neutral way to allow SAGE to communicate with clients. I have installed SimpleJSON (http://cheeseshop.python.org/pypi/simplejson) on a SAGE server and have it sending 2D plot data to an applet in the notebook. I would now like to request that SimpleJSON be added to SAGE.
In order to test SAGE->Applet communications using JSON, perform the following steps:
Install SimpleJSON in SAGE. The user must be able to import SimpleJSON by entering "import simplejson" in a cell.
Paste the following code into CELL 0 of a new worksheet and execute it in order to launch the applet:
The code will be sent to SAGE for evaluation and a JSON object which contains the plot data will be returned to the applet.
The plot will then be displayed in the "2DPlot" tab.
If you would like to see the data that is returned by the above code, just execute it in a blank cell in the notebook.
CC: @jasongrout
Component: packages: standard
Issue created by migration from https://trac.sagemath.org/ticket/1510
The text was updated successfully, but these errors were encountered: