question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add interactive terminal to pandas website

See original GitHub issue

We 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:closed
  • Created a year ago
  • Reactions:4
  • Comments:23 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
jtpiocommented, Jun 20, 2022

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.

1reaction
datapythonistacommented, Apr 9, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an Interactive Web App with PyScript and Pandas
It provides an interactive console to implement Python code. It lets you write code in Python, print the desired output, and continue to...
Read more >
The Easiest Way to Create an Interactive Dashboard in Python
This article will show you the easiest way to create an interactive dashboard in Python from any DataFrame. If you already know some...
Read more >
How To Work with the Python Interactive Console - DigitalOcean
The Python interactive console can be accessed from any local computer or server with Python installed. The command you will use to enter...
Read more >
How to Embed Interactive Python Visualizations on Your ...
In this tutorial, I will teach you how you can create interactive data visualization in Python. These visualizations are excellent candidates ...
Read more >
Use and interactive shell with Python on a web page ...
How to run a python shell in a web page https://pythonprogramming.altervista.org/run- python -code-on-a- web -page-in-a- shell -utility/
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found