Skip to content

Start jupyter from within my application and access its variables and functions #5821

Open
@henfri

Description

@henfri

Hello,

In a software I contribute to, the user can write its own logics. In order to debug those easily, an interactive python shell is available:

        shell = code.InteractiveConsole(locals())
        shell.interact()

https://github.com/smarthomeNG/smarthome/blob/3828810efa87c59994407125691a858882ded69a/bin/smarthome.py#L1282

I would now like to have similar functionality, but with a jupyter notebook. I found this:
#4873

But it seemingly starts a jupyter notebook which is empty just like running jupyter notebook.

So what's missing is that the functions and variables of the existing code is available in jupyter.

Is this forseen/possible?

Regards,
Hendrik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions