[IPython-dev] API to Modify Notebook Metadata

MinRK benjaminrk at gmail.com
Sat Sep 13 22:49:44 EDT 2014


On Sat, Sep 13, 2014 at 6:42 PM, Wes Turner <wes.turner at gmail.com> wrote:

> Could this functionality be used for storing JSON-LD metadata which
> maps to dcterms and/or schema.org?
>
> * Python: pyld, rdflib-jsonld
> * Javscript:
> http://www.w3.org/community/rdfjs/wiki/Comparison_of_RDFJS_libraries
>
> ... It would be great to be able to index notebooks by datasets referenced.
>

You can put anything JSONable in the metadata, so I imagine so.


> --
> Wes Turner
>
>
> On Sat, Sep 13, 2014 at 4:55 PM, MinRK <benjaminrk at gmail.com> wrote:
> > It’s relatively straightforward to do this from Javascript:
> >
> > IPython.notebook.metadata.key = "value";
> >
> > There isn’t an API to use from Python, other than raw execution of the
> above
> > javascript:
> >
> > from IPython.display import display_javascript
> > display_javascript('IPython.notebook.metadata.key = "value";', raw=True)
> >
> > -MinRK
> >
> >
> > On Sat, Sep 13, 2014 at 2:32 PM, Nolan Nichols <nolan.nichols at gmail.com>
> > wrote:
> >>
> >> Hi,
> >>
> >> I'm curious if it is yet possible to edit the Notebook Metadata
> >> programatically. I'm familiar with how to do this in the UI manually,
> but
> >> would like to simply inject some json into the metadata using code.
> Thanks!
> >>
> >> Cheers,
> >>
> >> Nolan
> >>
> >> _______________________________________________
> >> IPython-dev mailing list
> >> IPython-dev at scipy.org
> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> >>
> >
> >
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140913/05a04cb6/attachment.html>


More information about the IPython-dev mailing list