[IPython-dev] API to Modify Notebook Metadata

Wes Turner wes.turner at gmail.com
Sat Sep 13 21:42:12 EDT 2014


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.
--
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
>



More information about the IPython-dev mailing list