Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the logger so it can be used by other plugins #1

Open
jtpio opened this issue Jul 30, 2020 · 1 comment
Open

Expose the logger so it can be used by other plugins #1

jtpio opened this issue Jul 30, 2020 · 1 comment

Comments

@jtpio
Copy link
Member

jtpio commented Jul 30, 2020

The main plugin would define a provides here:

const extension: JupyterFrontEndPlugin<void> = {
id: 'js-logs',
autoStart: true,
requires: [IRenderMimeRegistry],
optional: [ICommandPalette, ILayoutRestorer],
activate: (
app: JupyterFrontEnd,
rendermime: IRenderMimeRegistry,
palette: ICommandPalette | null,
restorer: ILayoutRestorer | null
) => {

So the same logger instance could be reused by other plugins (for example to pipe logs from an IFrame).

@jtpio
Copy link
Member Author

jtpio commented Dec 8, 2023

Maybe we can use the default log console is newer versions of JupyterLab now: jupyterlab/jupyterlab#8877 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant