Skip to content

Allow plugins to hook into File > Open #7794

@jitseniesen

Description

@jitseniesen

This is inspired by spyder-ide/spyder-notebook#134. Users of the spyder-notebook plugin expect to open a notebook using File > Open. At the moment, this causes the notebook to be opened in the editor, which is not so useful. Somehow the notebook plugin (or any other plugin) should be able to indicate that it should be used to open files of a particular type.

Maybe the plugin initialization code should include a call like:

register_file_extension('.ipynb')

When the user opens a file with that extension, Spyder calls the plugin's load() function, similar to Editor.load().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions