Skip to content

Commit eaeee82

Browse files
committed
Python 2 support, spec update, missing npm dependency
1 parent 3c7b9cb commit eaeee82

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

ipywidgets/widgets/widget_upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self,
9090
self.compress_level = compress_level
9191
self.value = {}
9292

93-
super().__init__()
93+
super(FileUpload, self).__init__()
9494

9595
@validate('compress_level')
9696
def _valid_compress_level(self, proposal):

packages/controls/package-lock.json

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/controls/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"karma-webpack": "^2.0.3",
6868
"mocha": "^3.3.0",
6969
"npm-run-all": "^1.5.1",
70+
"pako": "^1.0.10",
7071
"postcss-cli": "^4.1.0",
7172
"postcss-cssnext": "^3.0.2",
7273
"postcss-import": "^10.0.0",

packages/schema/jupyterwidgetmodels.latest.md

+25
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,31 @@ Attribute | Type | Default | Help
345345
`layout` | reference to Layout widget | reference to new instance |
346346
`style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations
347347

348+
### FileUploadModel (@jupyter-widgets/controls, 1.4.0); FileUploadView (@jupyter-widgets/controls, 1.4.0)
349+
350+
Attribute | Type | Default | Help
351+
-----------------|------------------|------------------|----
352+
`_counter` | number (integer) | `0` |
353+
`_dom_classes` | array of string | `[]` | CSS classes applied to widget DOM element
354+
`_model_module` | string | `'@jupyter-widgets/controls'` |
355+
`_model_module_version` | string | `'1.4.0'` |
356+
`_model_name` | string | `'FileUploadModel'` |
357+
`_view_module` | string | `'@jupyter-widgets/controls'` |
358+
`_view_module_version` | string | `'1.4.0'` |
359+
`_view_name` | string | `'FileUploadView'` |
360+
`accept` | string | `''` | Type of files the input accepts. None for all. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept
361+
`compress_level` | number (integer) | `0` | Compress level: from 1 to 9 - 0 for no compression
362+
`description` | string | `''` | Description of the control.
363+
`description_tooltip` | `null` or string | `null` | Tooltip for the description (defaults to description).
364+
`disabled` | boolean | `false` | Enable or disable button
365+
`error` | string | `''` | Error message
366+
`layout` | reference to Layout widget | reference to new instance |
367+
`li_content` | array | `[]` | List of file content (bytes)
368+
`li_metadata` | array | `[]` | List of file metadata
369+
`multiple` | boolean | `false` | If true, allow for multiple files upload, else only accept one
370+
`style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations
371+
`style_button` | string | `''` | Optional style for button (label element)
372+
348373
### FloatLogSliderModel (@jupyter-widgets/controls, 1.4.0); FloatLogSliderView (@jupyter-widgets/controls, 1.4.0)
349374

350375
Attribute | Type | Default | Help

0 commit comments

Comments
 (0)