Comments (2)
I ran some tests and generating the HTML is a significant chunk of the total time for large collections and can actually take longer than getInfo
, so disabling caching on the HTML generation is a no go.
Another alternative I'm looking into is bypassing UUIDs altogether. Currently, UUIDs are used to tie the header <label>
to the hidden <input>
checkbox, but that can also be done by just making the <input>
a child of the <label>
instead of a sibling (see). This would remove any possible interaction between duplicated reprs, save some processing in generating UUIDs, and make the reprs a little lighter.
The challenge is that making the <input>
a child of the <label>
breaks the CSS selector I'm currently using, and I'm not sure there's any well-supported workaround for that. Basically I need to be able to select eerepr-list
elements that are siblings of eerepr-header
elements that contain eerepr-collapser:checked
inputs. The has:()
selector works, but isn't supported by Firefox yet. Instead of relying on pure CSS, I could fix that by injecting some JS into the repr, but I'd like to avoid that if possible to keep things simple.
from eerepr.
This is fixed by scrapping UUIDs and connecting label
and input
elements implicitly. I don't think a pure CSS solution is possible without using has:()
which would break Firefox support, so until that changes I'm using JS to handle collapsing behavior.
from eerepr.
Related Issues (20)
- Property order HOT 1
- PyPI and conda-forge HOT 2
- Fix `ee.List.shuffle`
- Add `MAX_REPR_MB` config
- Try minifying HOT 1
- Shrink reprs
- Options for python_requires directive? HOT 2
- Improve performance HOT 2
- Support for Python 3.7 HOT 1
- Null geometry repr bug HOT 4
- Add CI tests
- Test with JSON instead of server data
- Try using async widgets HOT 4
- Simplify packaging and drop 3.7 support
- Add pre-commit hooks
- Check for unused cached test data
- Ideas for limits
- Document using `IPython.display` for manual repr display HOT 1
- Fix failing CI
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 eerepr.