hyperspyUI icon indicating copy to clipboard operation
hyperspyUI copied to clipboard

hyperspyui magic?

Open francisco-dlp opened this issue 7 years ago • 2 comments

Would a %hyperspyui magic that opens HyperSpyUI and registers all the signals in the current namespace be feasible?

And the reverse, connecting to the IPython kernel in the HyperSpyUI session from e.g. a notebook?

francisco-dlp avatar Apr 15 '17 11:04 francisco-dlp

I'm a little confused about the details of this question. Maybe these can help narrow them:

  • What do you mean registers all the signals in the current namespace ?
  • What kind of use cases are you imagining?

I'm not sure how easy it is to expose an in-process kernel to the outside, but as far as I can see, that is what would need to be done.

vidartf avatar Apr 15 '17 12:04 vidartf

What do you mean registers all the signals in the current namespace

Search the namespace for variables containing HyperSpy signals and add them to the "Data view" panel.

What kind of use cases are you imagining?

HyperSpyUI solves one of the main annoyances of HyperSpy: the lack of a "figure manager". So, when working with many figures at the same time, one can call %hyperspyui and use it as a figure manager.

Connecting a notebook to a ipython session running in hyperspyui would make it easier to e.g. create long scripts/plugins in hyperspyui.

francisco-dlp avatar Apr 15 '17 12:04 francisco-dlp