jupyterlab-hdf5
jupyterlab-hdf5 copied to clipboard
Make the "Open" filebrowser context menu item work with ".hdf5" files
trafficstars
I'm currently exploring some changes to core to make this happen. Some possibilities:
-
Introduce a
dirlikefiletype to go alongsidedirectoryandfilein the corecontentsmachinery. When you open adirlikein the default filebrowser, it will switch to a particular browser, then use that browser'sdrivetocdtodirlike.path. -
add contents handling callback to the optional filetype parameters. At some point in the
'filebrowser:open'command, in between getting anitemand passingitem.pathto the next open command, have a hook for a callback like:(item: Contents.IModel): string => { <do stuff> return path; }