Restrict namespace bindings to prevent [eval] error and to lower serialization overhead.
This PR introduces new magic commands which allow handling of the
IPython namespace such that minimal amount of unnecessary bindings is
sent over to gremlin. (see issue #1)
Also, config.py has been modified, the default behaviour does pass the
namespace by default, however, sanitization of the namespace has been
improved. This behaviour can be configured by use_local_namespace
config variable.
Example (given that loading local namespace is disabled):
%load_ext gremlin # as usual
g = ... # gremlin graph object
vertex_id = '123456' # vertex id to be passed as binding to the gremlin
Restrict namespace bindings to prevent [eval] error and to lower serialization overhead.
This PR introduces new magic commands which allow handling of the IPython namespace such that minimal amount of unnecessary bindings is sent over to gremlin. (see issue #1)
New magic commands:
Also, config.py has been modified, the default behaviour does pass the namespace by default, however, sanitization of the namespace has been improved. This behaviour can be configured by
use_local_namespace
config variable.Example (given that loading local namespace is disabled):