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.

Programatically launch the data viewer for specified dataframe

See original GitHub issue

Hi folks,

One of the biggest RStudio time savers is the ability to open a dataframe (let’s say “df”) in the data viewer by simply typing View(df).

It would be incredibly handy to similarly have a python command which would do the same thing in VScode.

Thank you

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Feb 21, 2022

To do this:

  • You’ll need to create a custom IPython magic , such as %%showdataviewer xyz
  • When you handle the magic, you can send back a response with some special text
  • The Jupyter extension could monitor this special output and display the data frameviewer
    • Optionally you can try to use the widget framework and send custom messages via a custom channels (however that would require a bit more work).

Again, this is something you’ll have to do in Python as well as a custom copy of the Jupyter extension, and its not likely the solution we’d implement. (If we were to implement this within the product, one of the best ways to implement this in a generic manner would be for the Jupyter extension to dynamically register a magic if that’s at all possible).

1reaction
DonJayamannecommented, Dec 1, 2021

Thanks for understanding, by the way, we do have a large number of users using .py files in Interactive window that use the Jupyter extension. Hopefully they’ll upvote this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

View dataframe while debugging in VS Code - Stack Overflow
( VARIABLES panel is inside Run and Debug area); Right click on dataframe and select option View Value in Data Viewer . TADA...
Read more >
Pandas DataFrame Visualization Tools
This article summarizes options for using a GUI to interactively view and filter pandas DataFrames.
Read more >
How To: Activate a data frame programmatically in ArcMap
Right-click the UIButtonControl and select View Source. Copy this code into the UIButtonControl's click event. Dim pMxDoc As IMxDocument Dim ...
Read more >
Spark SQL and DataFrames - Spark 2.3.0 Documentation
Registering a DataFrame as a temporary view allows you to run SQL queries over its data. This section describes the general methods for...
Read more >
Different ways to create Pandas Dataframe - GeeksforGeeks
data : It is a dataset from which dataframe is to be created. It can be list, dictionary, scalar value, series, ndarrays, etc....
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