Remove webassets from sagenb?

71 views
Skip to first unread message

Volker Braun

unread,
Aug 5, 2014, 8:45:34 AM8/5/14
to sage-...@googlegroups.com
Webassets doesn't install with the new docutils (http://trac.sagemath.org/ticket/16736). What is it used for, and can we just remove it?

[~/sagenb-0.10.8.2]$ egrep -r webasset
setup.py:                   , 'webassets'
util/fetch_deps.py:                    , 'webassets>=0.7.1'
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/01fede5f7b0704a4f62e57b80b0d9ffa
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/0860531a126c391c60ea2f5340701861
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/098500f984f9ada25f03038c2bb47f85
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/225357b28789e1f98b909aa409df4af5
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/23e1477137c9d45eee76ad136a6670f5
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/3dfa458f9eca9c6bc4e6decf7e608a0c
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/3ecb99cf1052ce45976bf40fbd34dcba
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/4ad18e93260255211bc8c8a04423ad2d
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/4c24d211edf8ffde1e29c8f10f8a6cad
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/618d9ebfbff2e6c4d3e209c1aba27a71
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/72222e0512b05dedfe89a45825dc7248
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/7d176c870d16e8fa9eb3b069ef8a56ed
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/a5adf99d36de08c35f2046b8f4f51401
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/b00fd50ed82da303d22e7c46e309e852
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/b46746779328b5cae52bd48e166a5f81
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/b9ad9c96ea84eb0bc05d3b729776f1b2
sagenb.egg-info/SOURCES.txt:sagenb/data/.webassets-cache/f3f899c0906e6aea17a1562b44877b24
sagenb.egg-info/SOURCES.txt:sagenb/data/webassets_generated/base.js
sagenb.egg-info/SOURCES.txt:sagenb/data/webassets_generated/jmol_popup.js
sagenb.egg-info/SOURCES.txt:sagenb/data/webassets_generated/worksheet.js
sagenb.egg-info/SOURCES.txt:sagenb/data/webassets_generated/worksheet_list.js
sagenb.egg-info/requires.txt:webassets

kcrisman

unread,
Aug 5, 2014, 10:06:36 AM8/5/14
to sage-...@googlegroups.com


On Tuesday, August 5, 2014 8:45:34 AM UTC-4, Volker Braun wrote:
Webassets doesn't install with the new docutils (http://trac.sagemath.org/ticket/16736). What is it used for, and can we just remove it?


Good question, though presumably for something!   In #13121, we have

"new dependency on webassets for js/css autominification (not currently used in the master branch)"

Especially things like

sagenb/data/webassets_generated/jmol_popup.js

in your list seem to indicate that there are a few places we might minify js using this in sagenb, though I was not able to verify whether these were the specific js files used in actual running sagenb.  And you'll note that https://github.com/sagemath/sagenb/tree/master/sagenb/data doesn't have a webassets_generated folder, but I don't know if that means these are just unneeded sources or whether we really don't use it at all... unfortunately a lot of the people who might know this are not currently active.  This dependency was apparently added in https://github.com/sagemath/sagenb/commit/38327cae5a9e33f5ab1c90c0c27075df6d697f75 ... 

Got it.  This is only there so that people can use the "newui" branch (which apparently is quite nice but under tested).  See https://github.com/sagemath/sagenb/commit/6a8330ae7e907ac9c73b28a410286dd9384dd2dd

 Add @samuela's branch's dependency to spkg-dist

This way the spkg will still only contain sagemath's master, but you can
fetch and play with @samuela's branch without having to rerun `setup.py
develop`.

That took more time to track down than I would have liked.   So I guess we can indeed scrap it, though if we can keep samuela's branch compatibility (this is called the "newui" branch on github) that would be good for honoring that contribution, as someone may have time to do this in the long run (sagenb may not be cutting-edge but it is still the best choice for a lot of local work; I assume it is lighter-weight than whatever local SMC comes up but assumptions are dangerous).  Anyway, hope this detective work was useful.

By the way, webassets seems to be at 0.11 and perhaps upgrading it would do the trick as well.

- kcrisman

Volker Braun

unread,
Aug 5, 2014, 10:45:30 AM8/5/14
to sage-...@googlegroups.com
On Tuesday, August 5, 2014 3:06:36 PM UTC+1, kcrisman wrote:
By the way, webassets seems to be at 0.11 and perhaps upgrading it would do the trick as well.

I tried that already 

François Bissey

unread,
Aug 5, 2014, 11:46:07 PM8/5/14
to sage-...@googlegroups.com
On Tue, 05 Aug 2014 07:06:36 kcrisman wrote:
> That took more time to track down than I would have liked. So I guess we
> can indeed scrap it, though if we can keep samuela's branch compatibility
> (this is called the "newui" branch on github) that would be good for
> honoring that contribution, as someone may have time to do this in the long
> run (sagenb may not be cutting-edge but it is still the best choice for a
> lot of local work; I assume it is lighter-weight than whatever local SMC
> comes up but assumptions are dangerous). Anyway, hope this detective work
> was useful.
Actually if you are using KDE there is an interesting alternative to sagenb:
"cantor" http://www.kde.org/applications/education/cantor
Pity it doesn't work on OS X.

Francois

kcrisman

unread,
Aug 5, 2014, 11:51:42 PM8/5/14
to sage-...@googlegroups.com
Yes, I've heard about this, though I haven't used it.  Pity lots of things in the open-source world don't work other than on certain Linux setups... such as Sage on Windows ;-) 

kcrisman

unread,
Aug 5, 2014, 11:51:47 PM8/5/14
to sage-...@googlegroups.com


By the way, webassets seems to be at 0.11 and perhaps upgrading it would do the trick as well.

I tried that already 

Okay.  Hmm, I guess it would be pretty easy to remove it by just removing those dependencies in two places.  If fbissey's option of patching webassets is easier we can do that too. 

P Purkayastha

unread,
Aug 6, 2014, 1:45:43 AM8/6/14
to sage-...@googlegroups.com
Is any Sage developer working on Cantor? I used it a couple of years ago, and found it lacking (will have to look at it again to recall the issues I had with it). It seemed like it had a lot of potential though.

Ivan Andrus

unread,
Aug 6, 2014, 10:16:51 AM8/6/14
to sage-...@googlegroups.com
Has anyone tried? You can install KDE libraries with homebrew (or fink, or mac ports). It’s not inconceivable that cantor could work.

-Ivan
Reply all
Reply to author
Forward
0 new messages