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

Allow debugging the REPL locally #27

Open
agriyakhetarpal opened this issue Jan 16, 2025 · 3 comments
Open

Allow debugging the REPL locally #27

agriyakhetarpal opened this issue Jan 16, 2025 · 3 comments
Assignees

Comments

@agriyakhetarpal
Copy link
Collaborator

agriyakhetarpal commented Jan 16, 2025

The templates/index.html file sets the host to the deployed shell. This restricts developers from testing out changes locally because the REPL is loaded from the online JupyterLite deployment rather than from the local instance.

I was confused with this for a while when I tried to override the Pyodide version and noticed that it still picked up the newer one from GH Pages.

Originally posted by @agriyakhetarpal in #26 (comment)

@agriyakhetarpal agriyakhetarpal self-assigned this Jan 16, 2025
@ivanistheone
Copy link
Collaborator

ivanistheone commented Jan 16, 2025

As a workaround:

Edit templates/index.html to change the value of host from https://www.sympy.org/live to http://127.0.0.1:8000.

via https://github.com/sympy/live/blob/main/README.md?plain=1#L76-L77

(assuming local webserver will run on port 8000)

@ivanistheone
Copy link
Collaborator

I suppose we could add a command-line argument to the generateindex.py that automatically does this, somethign like --localdev.

@agriyakhetarpal
Copy link
Collaborator Author

Yes, I've been using that workaround recently, thanks. A CLI sounds good to me!

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

2 participants