peteut / ipython-file-upload

IPython file upload widget. Now obsolete, refer to widgets.https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#File-Upload
33 stars 11 forks source link

install from notebook - updates notebook, ipython, and ipywidgets #6

Closed den-run-ai closed 8 years ago

den-run-ai commented 8 years ago

Installing from notebook - updates notebook, ipython, and ipywidgets. Is it bad idea to continue running this notebook, i.e. do I need to restart the notebook+server? Looks like installation fails at setuptools.

!pip install -U fileupload

Collecting fileupload
  Downloading fileupload-0.1.1-py2.py3-none-any.whl
Collecting ipywidgets>=4.0 (from fileupload)
  Downloading ipywidgets-5.1.3-py2.py3-none-any.whl (43kB)
Collecting notebook>=4.0 (from fileupload)
  Downloading notebook-4.2.0-py2.py3-none-any.whl (6.7MB)
Requirement already up-to-date: traitlets>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Collecting ipython>=4.0.0 (from ipywidgets>=4.0->fileupload)
  Downloading ipython-4.2.0-py2-none-any.whl (736kB)
Requirement already up-to-date: ipykernel>=4.2.2 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Collecting widgetsnbextension>=1.2.2 (from ipywidgets>=4.0->fileupload)
  Downloading widgetsnbextension-1.2.2-py2.py3-none-any.whl (1.5MB)
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)
Collecting nbconvert (from notebook>=4.0->fileupload)
  Downloading nbconvert-4.2.0-py2.py3-none-any.whl (319kB)
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)
Collecting pickleshare (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
  Downloading pickleshare-0.7.2-py2.py3-none-any.whl
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)
Collecting backports.shutil-get-terminal-size (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
  Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Requirement already up-to-date: decorator in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Collecting setuptools>=18.5 (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
  Downloading setuptools-21.0.0-py2.py3-none-any.whl (509kB)
Collecting pygments (from nbconvert->notebook>=4.0->fileupload)
  Downloading Pygments-2.1.3-py2.py3-none-any.whl (755kB)
Requirement already up-to-date: mistune!=0.6 in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Collecting entrypoints (from nbconvert->notebook>=4.0->fileupload)
  Downloading entrypoints-0.2.1-py2.py3-none-any.whl
Requirement already up-to-date: MarkupSafe in c:\python\python27_32b\lib\site-packages (from jinja2->notebook>=4.0->fileupload)
Collecting pathlib2 (from pickleshare->ipython>=4.0.0->ipywidgets>=4.0->fileupload)
  Downloading pathlib2-2.1.0-py2.py3-none-any.whl
Collecting configparser (from entrypoints->nbconvert->notebook>=4.0->fileupload)
  Downloading configparser-3.3.0r2.tar.gz
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)
Building wheels for collected packages: configparser
  Running setup.py bdist_wheel for configparser: started
  Running setup.py bdist_wheel for configparser: finished with status 'done'
  Stored in directory: C:\Users\denis.akhiyarov\AppData\Local\pip\Cache\wheels\ed\ba\4d\7ae619b8bedfb950c8e9a8155d21fa96317f3fd8f03270652c
Successfully built configparser
Installing collected packages: pathlib2, pickleshare, backports.shutil-get-terminal-size, setuptools, ipython, pygments, configparser, entrypoints, nbconvert, notebook, widgetsnbextension, ipywidgets, fileupload
  Found existing installation: pickleshare 0.5
    Uninstalling pickleshare-0.5:
      Successfully uninstalled pickleshare-0.5
  Found existing installation: setuptools 20.3
Cannot remove entries from nonexistent file c:\python\python27_32b\lib\site-packages\easy-install.pth
den-run-ai commented 8 years ago

ok, setuptools needs easy_install:

https://github.com/pypa/pip/issues/2751

peteut commented 8 years ago

A restart should not be required, but the JS stuff needs to be installed prior usage. import fileupload; fileupload.nbinstall() needs to be invoked once.

den-run-ai commented 8 years ago

@peteut right now pip install -U fileupload is a bad idea due to https://github.com/pypa/pip/issues/2751

I recommend that you update the readme with pip install fileupload

den-run-ai commented 8 years ago

this seems to be resolved now. let's keep setuptools/pip/conda mess separate from this.