Comments (12)
@denfromufa Did you install the widget prior usage w/ import fileupload; fileupload.nbinstall()
?
I'm relying on install_nbextension
to install it. The relevant code is here.
from ipython-file-upload.
once I reloaded notebook and jupyter localhost server the _upload() does not generate anything. I'm using Yandex.Browser (enhanced Chromium).
here is the output of !pip install -U fileupload
which shows that all requirements were satisfied:
Requirement already up-to-date: fileupload in c:\python\python27_32b\lib\site-packages
Requirement already up-to-date: ipywidgets>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: notebook>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: traitlets>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: ipython>=4.0.0 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: ipykernel>=4.2.2 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: widgetsnbextension>=1.2.2 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: tornado>=4 in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jupyter-client in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: nbformat in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jupyter-core in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: nbconvert in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: ipython-genutils in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jinja2 in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: pickleshare in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: simplegeneric>0.8 in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: backports.shutil-get-terminal-size in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: decorator in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: setuptools>=18.5 in c:\python\python27_32b\lib\site-packages\setuptools-21.0.0-py2.7.egg (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: pygments in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: mistune!=0.6 in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: entrypoints in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: MarkupSafe in c:\python\python27_32b\lib\site-packages (from jinja2->notebook>=4.0->fileupload)
Requirement already up-to-date: pathlib2 in c:\python\python27_32b\lib\site-packages (from pickleshare->ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: configparser in c:\python\python27_32b\lib\site-packages (from entrypoints->nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: six in c:\python\python27_32b\lib\site-packages (from pathlib2->pickleshare->ipython>=4.0.0->ipywidgets>=4.0->fileupload)
from ipython-file-upload.
@peteut which widget you mean?
from ipython-file-upload.
@denfromufa fileupload
is a simple python package, the example shows a simple use case. fileupload.nbinstall()
needs to be invoked once to get the JS file installed. Is there a better way to get the JS file installed?
from ipython-file-upload.
@peteut I followed your installation steps including fileupload.nbinstall()
but still got the issues listed above.
https://github.com/peteut/ipython-file-upload/blob/master/README.rst
from ipython-file-upload.
@denfromufa I tested it on Debian GNU/Linux for now, what platform are you on?
from ipython-file-upload.
Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016,
15:18:41) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 4.2.0 -- An enhanced Interactive Python.
On Tue, May 3, 2016 at 5:04 PM, Alain Péteut [email protected]
wrote:
@denfromufa https://github.com/denfromufa I tested it on Debian
GNU/Linux for now, what platform are you on?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#7 (comment)
from ipython-file-upload.
this widget is working great for me, like it did ~ year ago:
https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/File%20Upload%20Widget.ipynb
I think your package fileupload
is over-complicating something!
On Tue, May 3, 2016 at 5:06 PM, Denis Akhiyarov [email protected]
wrote:
Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016, 15:18:41) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.IPython 4.2.0 -- An enhanced Interactive Python.
On Tue, May 3, 2016 at 5:04 PM, Alain Péteut [email protected]
wrote:@denfromufa https://github.com/denfromufa I tested it on Debian
GNU/Linux for now, what platform are you on?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#7 (comment)
from ipython-file-upload.
@peteut you might want to add support for the new (jupyter 4.2) method for javascript installation as well as retaining a more universal version (see, e.g. this page on readthedocs)
It seems fairly clear that the issue is whether the javascript is being copied to the correct directory for the server to find it.
@denfromufa do you get any output from fileupload.nbinstall()
? Are there any notebook server logs (particularly when running notebook with the --debug
flag)?
from ipython-file-upload.
@jcb91 Thanks for the hint, this is the way to go.
from ipython-file-upload.
master
is now updated to use ipywidgets>=5.1
.
from ipython-file-upload.
@jcb91 @peteut latest fixes worked great! also had to use "sudo" system python.
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
- Big File upload HOT 5
- 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
- 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.