Comments (6)
from jupyterlab_voyager.
Thanks, @ssharif6 , I'll look up into it, maybe the underneath data-frame we extract has a different structure?
from jupyterlab_voyager.
Hi, @ssharif6 , it turns out to be an issue about panda dataframe's default setting.
if not specified, pd will only display the first 30 rows + the last 30 rows, so JupyterLab_Voyager will only be able to get this 60 rows of data instead of the full dataset (that's why you see a difference).
Without major changes, to extract the whole dataset from this 'partial' table is almost impossible. So, an easy solution would be just changing the panda settings:
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
In this way, the whole frame is displayed, and 'Open Table in Voyager' will get the correct data.
from jupyterlab_voyager.
Is Open Table in Voyager
just scraping the HTML output table? If so, I don't think that's an appropriate method to get the underlying data.
You can't simply change the display of the output because printing large DataFrames will then effectively hang your kernel session.
from jupyterlab_voyager.
True, that's definitely not a good solution. But currently Jupyter notebook doesn't expose the source dataset in cell output, for this extension, we don't have an easy way to directly find and access the data unless we modify the notebook itself to add some APIs.
from jupyterlab_voyager.
^^^ I think this is a general design question that Jupyter needs to answer properly.
I guess a big aspect of this is how you communicate the data from Python/R/whatever objects to the frontend in javascript and had thought arrow might fit the bill there.
IMHO It would be great if the Open in Voyager
context menu could be integrated with the variable inspector. They're already doing something similar by providing a phosphor datagrid view for numpy arrays. Although it's not yet an officially supported extension I think it would make sense for it to be in future - it's one of the highest request items from my users.
from jupyterlab_voyager.
Related Issues (20)
- Changes to IDocumentWidget in JupyterLab 0.33 break voyager extension HOT 1
- Extension is not working for jupyter lab 0.33.11 HOT 12
- Build Error: Cannot find module 'jupyterlab_voyager/package.json'
- Add support for semi-colon separated text files? HOT 1
- MyBinder build fails HOT 1
- Cannot install the Jupyter Lab extension HOT 11
- Can not install HOT 1
- Unable to load csv file, getting error: cannot read property of 'var' undefined HOT 1
- Fix mybinder from having conflicting dependencies HOT 2
- Cannot open a CSV from "Open with ..." menu HOT 4
- Travis Build Failing HOT 1
- Update to Jupyter
- Update to JupyterLab 1.0 HOT 3
- Launch from pandas dataframe: website says possible, but can't find? HOT 2
- KeyError: '@jupyterlab/apputils' when installing voyager? HOT 12
- Support jupyterlab 1.1.3 HOT 5
- Skip 1.1.3 and support jupyterlab 1.1.4👍 HOT 9
- Todo: Save Voyager state in widget, so that when window is reloaded it will preserve what you have selected.
- Current version of JupyterLab not supported. HOT 8
- sass-loader compilation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab_voyager.