We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example https://www.compart.com/en/unicode/U+1F4E6
https://mybinder.org/v2/gh/jupyterlab/jupyterlab-plugin-playground/main?urlpath=lab with:
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { MainAreaWidget } from '@jupyterlab/apputils'; import { DataGrid, DataModel, BasicKeyHandler, BasicMouseHandler, BasicSelectionModel } from '@lumino/datagrid'; class LargeDataModel extends DataModel { rowCount(region: DataModel.RowRegion): number { return region === 'body' ? 100 : 1; } columnCount(region: DataModel.ColumnRegion): number { return region === 'body' ? 10 : 1; } data(region: DataModel.CellRegion, row: number, column: number): any { if (region !== 'body') { return `${row}, ${column}`; } return '📦'.repeat(20); } } const extension: JupyterFrontEndPlugin<void> = { id: 'datagrid', autoStart: true, activate: ( app: JupyterFrontEnd ) => { const model = new LargeDataModel(); const content = new DataGrid(); content.dataModel = model; // (handlers are not required for reproduction) content.keyHandler = new BasicKeyHandler(); content.mouseHandler = new BasicMouseHandler(); content.selectionModel = new BasicSelectionModel({ dataModel: model }); const widget = new MainAreaWidget({content}); widget.id = 'datagrid-example'; widget.title.label = 'Unicode Datagrid Example'; app.shell.add(widget, 'main'); }, }; export default extension;
Unicode-aware slice is used, see https://stackoverflow.com/a/62341816
The text was updated successfully, but these errors were encountered:
Invalid unicode characters removed (jupyterlab#456)
0b952c8
Invalid unicode characters removed from datagrid (jupyterlab#456) (ju…
e887f33
…pyterlab#578) * Invalid unicode characters removed (jupyterlab#456) * Using arrays * Simplified structure * Prettified
Successfully merging a pull request may close this issue.
Description
For example https://www.compart.com/en/unicode/U+1F4E6
Reproduce
https://mybinder.org/v2/gh/jupyterlab/jupyterlab-plugin-playground/main?urlpath=lab with:
Expected behavior
Unicode-aware slice is used, see https://stackoverflow.com/a/62341816
The text was updated successfully, but these errors were encountered: