Skip to content

Commit 8ec07cd

Browse files
committed
Python 2 support, spec update, missing npm dependency
1 parent c6a3ee3 commit 8ec07cd

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
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
@@ -43,6 +43,7 @@
4343
"d3-format": "^1.3.0",
4444
"jquery": "^3.1.1",
4545
"jquery-ui": "^1.12.1",
46+
"pako": "^1.0.10",
4647
"underscore": "^1.8.3"
4748
},
4849
"devDependencies": {

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

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
regenerator-runtime "^0.13.2"
2727

2828
"@blueprintjs/core@^3.15.0", "@blueprintjs/core@^3.9.0":
29-
version "3.15.1"
30-
resolved "https://registry.npmjs.org/@blueprintjs/core/-/core-3.15.1.tgz#9792e9fb7e2e066dd5339fadeaf2f85b1485832a"
31-
integrity sha512-M8ltbqqlMZuZ6SEuqo/3Fr59ZcUfd8Er7ocbm7EACVfRW7dRhOCd/TKkf2kfICNtCDwznwXk0iAePLXZhUGtQg==
29+
version "3.16.0"
30+
resolved "https://registry.npmjs.org/@blueprintjs/core/-/core-3.16.0.tgz#7696c5119c5911ed7aeebf2217d89e79c526a8a5"
31+
integrity sha512-mhacy/2DhZSu9RolXQ/v6B7izJ618cqYgI9O4BbU8yzTHMwsf4iRdoThEJuA2jDG3dvcQPd6+Ix9KZ6xy9fF8w==
3232
dependencies:
3333
"@blueprintjs/icons" "^3.8.0"
3434
"@types/dom4" "^2.0.1"
@@ -7353,7 +7353,7 @@ package-json@^6.3.0:
73537353
registry-url "^5.0.0"
73547354
semver "^6.1.1"
73557355

7356-
pako@~1.0.5:
7356+
pako@^1.0.10, pako@~1.0.5:
73577357
version "1.0.10"
73587358
resolved "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732"
73597359
integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==

0 commit comments

Comments
 (0)