Gramex can allows you to run JavaScript code via node.js
using gramex.pynode.node
. Using Gramex FunctionHandlers you can run JavaScript code in node.js. Here is a simple example:
from gramex.pynode import node
from tornado.gen import coroutine, Return
@coroutine
def total(handler):
result = yield node.js('return Math.abs(x + y)', x=5, y=-10) # Run code in JS
raise Return(result)
This returns the result:
{ "error": null, "result": 5 }
opacity-**
{10, 20 .., 80, 90} classes have been added for defining opacity.
.opacity-10
sets opacity to 10%
. Other classes have similar behavior.+
, -
as expand and collapse symbols is addedMapviewer tutorial covers
g1.mapviewer
usage with examples.
g1.mapviewer
is an abstraction over Leaflet that can create common GIS applications using configurations.
>
, less than <
opertions._sort
on col|agg
columns when using _by
with SQL engines. This is now fixed.
#452Logviewer documentation now has a section describing how logviewer.db
is created.
And, covers in detail how metrics are calculated, in particular session
relation calculations and scenarios.
d3-scale-chromatic.js
– provides sequential, diverging
and categorical color schemes designed to work with d3-scale
’s d3.scaleOrdinal
and d3.scaleSequential
.gramex.cache
size was using sys.getsizeof
, we now use gramex.cache.sizeof
.
This fixes #444To upgrade Gramex, run:
pip install --verbose gramex==1.39
To upgrade apps dependencies, run:
gramex setup --all
This downloads Chromium and other front-end dependencies. That may take time.