Configure which extension opens which file type?

Is there a way to configure which extension opens which file type?

for instance I want csv to be open with jupyterlab-tabular-data-editor
and tsv with jupyterlab-spreadsheet-editor

(because spreadsheet-editor doesn’t display lines with many characters in a good way for our use case)

can it be configured globally and as a user config?

I use z2jh with helm to deploy this environment.

Yes, you can configure this under settings → settings editor and then in the ‘Document Manager’ settings:

image

1 Like

thank you!

Is there a way to set a default configuration via the jupyter lab config or something?

The config is just stored and provided in JSON files.

In your case that specific config is located in ~/.jupyter/lab/user-settings/@jupyterlab/docmanager-extension/plugin.jupyterlab-settings.

You should be able to provide your new ‘default’ for a pod by copying it into the pod.

Or you could try to provide it through a customization of the container.

1 Like

thanks for the pointer to the user config file.
It’s very helpful.