Comments (5)
Hmm, there should be no size limitation from FileReader. Sorry, I have no explanation for that behaviour yet.
Could you please provide a pip freeze | grep ipywidgets
?
For now you could try/use the builtin upload feature of notebook
.
from ipython-file-upload.
In my case files larger than ~10Mb do not get uploaded. I used the code sample for README.md, with small modifications. The _cb method doesn't get called at all. It works for smaller files.
(tensorflow) bash-3.2$ pip freeze | grep ipywidgets
ipywidgets==7.3.1
import io
from IPython.display import display
import fileupload
def _upload():
_upload_widget = fileupload.FileUploadWidget()
def _cb(change):
print("hello")
filename = change['owner'].filename
print('Uploaded `{}` ({:.2f} kB)'.format(
filename, len(change['owner'].data) / 2 **10))
_upload_widget.observe(_cb, names='data')
display(_upload_widget)
_upload()
from ipython-file-upload.
I'm seeing exactly the same issue as ialek36. Running on Python3, Windows 10, ipywidgets 7.0.0, using the README.md code sample (modified to remove the ioStringIO line, seems not compatible with Python 3). Uploading works fine for smaller files (~100 kB, 4 MB), but hangs (without ever calling _cb) for files > ~10 MB. Please let me know if I can help debug.
from ipython-file-upload.
I was actually able to track this down to tornado package. It has websocket.py module which in turn has a setting _default_max_message_size = 10 * 1024 * 1024
. That controlled the file size upload for me.
from ipython-file-upload.
Thanks @ialek36 for this trace.
So to actually modify this setting one has to either:
-
run jupyter with following option:
jupyter notebook --NotebookApp.tornado_settings='{"websocket_max_message_size": 62914560}'
(the magic number above is 60 * 1024 * 1024, i.e. 60 MiB) -
or to create jupyter config file as described here and uncomment and set c.NotebookApp.tornado_settings option.
from ipython-file-upload.
Related Issues (19)
- Install Extensions Into User Folder
- continuous integration for appveyor and travis HOT 4
- python 3.5 linux mint (anaconda distro) - AttributeError: 'Unicode' object has no attribute 'tag' HOT 2
- permission denied HOT 3
- still not working on Windows
- integrate with jQuery file upload
- Is there a way to obtain the path of the file selected after i click browse ? HOT 2
- Default destination? HOT 1
- Problem using on python 2.x HOT 2
- Support for binary file transfer in ipywidgets 7 HOT 7
- New Release? HOT 6
- Install nbextensions via `setup.py` HOT 2
- No PermissionError for Python 2.7 HOT 4
- Support Multiple Instances
- multi-file upload request HOT 1
- install from notebook - updates notebook, ipython, and ipywidgets HOT 4
- Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension" HOT 12
- compatible with ipywidgets 5+? HOT 1
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 ipython-file-upload.