Add interactive terminal to pandas website
See original GitHub issueWe discussed in the past about making pandas examples in the documentation runnable. The original idea was to use Binder for it, which requires a decent amount of hosting, besides setting up things in our end.
There is now a new alternative, based on webassembly, Jupyter Lite. The idea is that there is no backend to run the code, but it’s a WebAssembly Python interpreter in the client browser who executes the code.
NumPy is already using this in their home page. The terminal takes few seconds to load, but after that, seems to work just fine, and it already has pandas installed in the environment, so import pandas
works.
Would be nice to get the same for pandas. I’d start adding a new section to our Getting started page for the interactive terminal, see how it works, and when we’ve got this working fine, we can consider adding it to the home page, making examples runnable…
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:23 (18 by maintainers)
Top GitHub Comments
Thanks @hamedgibago for working on this.
With the latest release of JupyterLite it shouldn’t be necessary to manually fetch the file anymore (see https://github.com/pandas-dev/pandas/issues/46682#issuecomment-1158846372).
Probably the simplest would be to create a custom JupyterLite deployment as detailed in https://jupyterlite.readthedocs.io/en/latest/quickstart/deploy.html. And then add the example csv file to the contents.
Yes, I’d start with something like that. Maybe a dataframe with few more columns and samples, so it’s still simple but users can do a groupby, or use a date function. But that’s the idea.