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

launching a jupyterlite open the lite folder #76

Open
12rambau opened this issue Oct 7, 2022 · 5 comments
Open

launching a jupyterlite open the lite folder #76

12rambau opened this issue Oct 7, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@12rambau
Copy link
Contributor

12rambau commented Oct 7, 2022

Description

I'm working on implementing a simple example of jupyterlite in the pydata-sphinx-theme (pydata/pydata-sphinx-theme#755). I try to keep it to the most simple example possible. I'm trying a retrolite display:

.. retrolite::
   :prompt: Try Retrolite!

but when I click on the prompt btn, it opens the lite folder instead of launching a notebook

Capture d’écran 2022-10-07 à 14 57 57

Reproduce

install the lib

pip install jupyterlite-sphinx

add the extension to my conf.py

# conf.py
extensions = [
    'jupyterlite_sphinx',
]

nothing else (maybe that's actually the issue)

Context

  • JupyterLite version: latest
  • Operating System and version: MacOSX 12.5.1
  • Browser and version: Safari 16.0
@12rambau 12rambau added the bug Something isn't working label Oct 7, 2022
@martinRenou
Copy link
Member

Thanks for opening an issue :)

It's expected that

.. retrolite::
   :prompt: Try Retrolite!

opens the tree.

You can open a Notebook by passing it:

.. retrolite:: my_notebook.ipynb
   :prompt: Try Retrolite!

Also, if what you want is the most simple JupyterLite setup, I can suggest using replite to just get a repl:

.. replite::
   :prompt: Try Retrolite!

@12rambau
Copy link
Contributor Author

12rambau commented Oct 7, 2022

Thanks a lot for your fast answer. I'll have a look at the replite command.
The path to the file is relative the source folder ? or the jupyterlite_contents configuration parameter ?

@martinRenou
Copy link
Member

Since this PR (introduced in 0.7.2), .. retrolite:: my_notebook.ipynb should consider my_notebook.ipynb as being relative to the .rst file.

Please report back if what I just said is correct 😁, I'm not 100% sure

@12rambau
Copy link
Contributor Author

12rambau commented Oct 7, 2022

I tried using a custom notebook:

.. retrolite:: ./_templates/my_notebook.ipynb
   :prompt: Try Retrolite!

no error is raised but the tree is still opening instead of the jupyterlite instance

@12rambau
Copy link
Contributor Author

I still fail to make it work on my local computer but I managed to have a working display in pydata/pydata-sphinx-theme#1023. feel free to close the issue if you think it's coming from my computer set up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants