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

Add an :app: parameter to the jupyterlite directive #114

Open
jtpio opened this issue Nov 13, 2023 · 1 comment
Open

Add an :app: parameter to the jupyterlite directive #114

jtpio opened this issue Nov 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jtpio
Copy link
Member

jtpio commented Nov 13, 2023

Problem

Currently we have a couple of directives for either using the full JupyterLab interface, Notebook or REPL.

However this could be a bit tedious to maintain over time if more apps are added.

Proposed Solution

As noticed in #113 (comment), we could start introduce an :app: parameter to the directive.

To use Jupyter Notebook, this would mean using the notebooks app from JupyterLite:

.. jupyterlite::
   :width: 100%
   :height: 600px
   :app: notebooks
   :prompt: Try classic Notebook!

For JupyterLab:

.. jupyterlite::
   :width: 100%
   :height: 600px
   :app: lab

For REPL:

.. jupyterlite::
   :width: 100%
   :height: 600px
   :app: repl

Additional context

Follow-up to #113 (comment)

@jtpio jtpio added the enhancement New feature or request label Nov 13, 2023
@martinRenou
Copy link
Member

That looks like a nice API indeed, thanks for the suggestion! The notebooks app could be used by default.

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

No branches or pull requests

2 participants