Comments (3)
ping @aggFTW
from qgrid.
@ellisonbg can you elaborate on what you mean by Right now, defaults are handled outside the QGridWidget class.
? We maintain a global instance of _DefaultSettings
in the grid module, so that you can apply settings to all the grids you create, but that's still configurable on a per-instance basis, and we should be making a copy of the settings when we instantiate a new instance. If there are bogus entries in that settings dict by default, then that's just a bug I think.
from qgrid.
In general, widgets and traitlets.HasTraits classes shoudl put the default
value in one of 2 locations:
- Use the
default_value
kw arg to the Trait itself - Define a
_foo_default
method that returns the default.
This will enable the class to be instantiated with no explicit args if
needed, and the module level overrides will only need to set those values
that are different from the class defaults. I think it is fine to have the
module level API for settings things, but those should not contain the
defaults just overrides of the actual class defaults.
On Mon, Nov 2, 2015 at 7:49 PM, Scott Sanderson [email protected]
wrote:
@ellisonbg https://github.com/ellisonbg can you elaborate on what you
mean by Right now, defaults are handled outside the QGridWidget class.?
We maintain a global instance of _DefaultSettings in the grid module, so
that you can apply settings to all the grids you create, but that's still
configurable on a per-instance basis, and we should be making a copy of the
settings when we instantiate a new instance. If there are bogus entries in
that settings dict by default, then that's just a bug I think.—
Reply to this email directly or view it on GitHub
#43 (comment).
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
[email protected] and [email protected]
from qgrid.
Related Issues (20)
- Qgrid working with Modern Jupyter Lab (3.2 and beyond)
- Set Formatter for Column Definitions
- AttributeError: 'DataFrame' object has no attribute 'map'
- [Security] Workflow main.yml is using vulnerable action actions/checkout
- missing 1 required positional argument: 'widget' HOT 3
- qgrid not working in Binder notebook
- update for ipywidgets 8 compatibility HOT 1
- qgrid post link fails on environment build HOT 2
- REPO IS NO LONGER MAINTAINED AND DOES NOT SUPPORT JUPYTERLAB>=3.0.0 HOT 8
- QGrid is not working with NB-viewer.
- Internet connection required for qgrid 1.1.3 HOT 1
- Here, working version HOT 12
- filter_changed is not recognised in .on() HOT 1
- "ImportError: cannot import name 'Mapping' from 'collections' (C:\ProgramData\anaconda3\lib\collections\__init__.py)"
- post-link script failed for package conda-forge::qgrid-1.3.1-py39hcbf5309_2
- Filter not working HOT 1
- Detecting row selected in Python shiny
- Cannot edit the table using responsive setting
- Introducing QgirdNext: bug fixes and compatibility improvements HOT 1
- Polars Support
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 qgrid.