-
Notifications
You must be signed in to change notification settings - Fork 130
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
Dynamic dataframe loading when using View() #837
Comments
any update about this? it should be implemented as lazy loading, like RStudio implementation. |
As a workaround, it is now possible to set the maximum number of rows to be loaded into the data viewer (#945). |
@eitsupi Had a huge problem with 2FA and almost lost my account. But I'm back. Thank you for letting me know about the workaround. I've talked to @ElianHugh a while ago about this, and he gave me the idea of making the solution completly optional, to not disturb the current functionality. I'm trying to find some time to delve into this issue. |
Hi, thanks a lot for your huge work on this extension. Vscode complete noob here! I'm having troubles opening and working interactively with big dataframes (> 1,000,000 rows). The data viewer is quite slow at opening these dataframes and when it does, nothing is shown in the respective preview editor. For small I have enabled R:Session watcher and set the option Row limit to 50 Do you have any update about this feature/fix? Thanks! |
Hi @d-golzato, how are you? Unfortunately I couldn't delve further into this feature. Life got a little too busy since my first (and only) contribution to this project so far. The main problem is that R commands can trigger Vscode events/actions/etc via writing on a file that is watched by the Vscode session; the other way around, as far as I know, it's not possible in the moment. The only way to trigger R events/actions in the session is quite literally writing in the R console. I've managed to create a very crude solution some time ago that worked as follows:
It worked, but the constant terminal calls were ugly and the overall approach felt cheap. I couldn't manage to find a elegant way to make the R calls invisible. Furthermore, I don't think that is the optimal approach to the problem: an websocket communication, as described in #1151, could provide nicer interactions between R and Vscode sessions and allow lots of new features. Sorry about that. |
This issue is stale because it has been open for 365 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Is your feature request related to a problem? Please describe.
Using
View()
on large dataframes causes the system to crash or become slow since it has to load all data into a html template.Describe the solution you'd like
Use pagination to load only rows that are on screen. Filtering and sorting should be handled "server-side".
Describe alternatives you've considered
I use things like
View(my_dataframe[1:100,])
, but it compromises filtering and sorting.Additional context
Example:
Screenshot:
I'd like to help/implement, if possible. I already took a look at
vsc.R
andsession.ts
since the Ag Grid update (#708). Tips/advice are welcomed.The text was updated successfully, but these errors were encountered: