Re: [Tracker] Extending indexed file types



Hi, I get 

bjorn@bjorn-ThinkPad-T450s:~/Desktop$ gio info jupyter_note_book.ipynb |grep content-type
  standard::content-type: application/x-ipynb+json
  standard::fast-content-type: application/x-ipynb+json
bjorn@bjorn-ThinkPad-T450s:~/Desktop$ tracker daemon

Ill try to understand how the extractors work. Thanks for the help.

Bjorn


On Tue, Jun 6, 2017 at 7:51 PM, Carlos Garnacho <carlosg gnome org> wrote:
Hi Bjorn,

On Tue, Jun 6, 2017 at 11:28 AM, Björn Johansson
<bjorn_johansson bio uminho pt> wrote:
> Hi, I just installed the latest Tracker from the ubuntu standard repo.
>
> Seems to be working fine but my Jupyter notebooks does not seem to be
> indexed.
> Is this expected?

Yes, Tracker has no specific knowledge of these files.

>
> Jupyter notebooks are a kind of JSON text files containing code and text
> (http://jupyter.org/).
>
> Can I extend Tracker to also index these files? They are popular in the
> scientific computing community.

We do accept patches :). As Debarshi pointed out, there's quite a few
examples in src/tracker-extract in the tracker git tree.

But those Tracker extract modules rely on specific enough mimetypes,
could be worth checking first whether shared-mime-info knows about
jupyter specifically, eg. doing:

gio info $FILE |grep content-type

Cheers,
  Carlos



--
______O_________oO________oO______o_______oO__
Björn Johansson
Assistant Professor
Departament of Biology
University of Minho
Campus de Gualtar
4710-057 Braga
PORTUGAL
https://metabolicengineeringgroupcbma.github.io
www.bio.uminho.pt
Office direct +351-253 601517 | PT mob.  +351-967 147 704 | SWE mob.  +46 72 740 60 20
Dept of Biology (secretary) +351-253 60 4310  | fax +351-253 678980


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]