takluyver / nbopen

Open a Jupyter notebook in the best available server
BSD 3-Clause "New" or "Revised" License
301 stars 58 forks source link

nbopen installs without extension??? #37

Closed den-run-ai closed 7 years ago

den-run-ai commented 7 years ago

image

Uninstalling nbopen-0.3:
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\description.rst
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\installer
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\metadata
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\metadata.json
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\record
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\top_level.txt
  c:\python\python27_32b\lib\site-packages\nbopen-0.3.dist-info\wheel
  c:\python\python27_32b\lib\site-packages\nbopen.py
  c:\python\python27_32b\lib\site-packages\nbopen.pyc
  c:\python\python27_32b\scripts\nbopen
Proceed (y/n)?
takluyver commented 7 years ago

Yep. To integrate it with Windows explorer, run python win-install.py.

den-run-ai commented 7 years ago

Thank you for quick response - I ran win-install.py from master branch, but it does help at all. Explorer integration does not pop-up anything. nbopen is not recognized on command-line:

python win-install.py
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
running install_egg_info
Writing
C:\Users\denis.akhiyarov\AppData\Roaming\Python\Python27\site-packages\n
bopen-0.2-py2.7.egg-info
nbopen widgets_multiselect.ipynb
'nbopen' is not recognized as an internal or external command,
operable program or batch file.

On Mon, Nov 14, 2016 at 11:27 AM, Thomas Kluyver notifications@github.com wrote:

Yep. To integrate it with Windows explorer, run python win-install.py.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/takluyver/nbopen/issues/37#issuecomment-260401656, or mute the thread https://github.com/notifications/unsubscribe-auth/AHgZ5c0uxTJDkbXDR_ClvbA2DrQc-GTbks5q-JoVgaJpZM4KxdNl .

takluyver commented 7 years ago

If all you want is the command line integration, try pip install nbopen. I'm not sure how to debug the explorer integration, sorry.

den-run-ai commented 7 years ago

I already did pip install nbopen, but I think it does not work because nbopen file sits in .Scripts\ folder without valid extension for executables. In fact is not even valid executable - it is just a python script, but there is already another nbopen.py main script installed in site-packages.

So I renamed nbopen to nbopenstart.py and here is the error, perhaps the same with explorer integration:

nbopenstart.py widgets_multiselect.ipynb
C:\Python\Python27_32b\lib\site-packages\IPython\html.py:14: ShimWarning:
The `I
Python.html` package has been deprecated. You should import from `notebook`
inst
ead. `IPython.html.widgets` has moved to `ipywidgets`.
  "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
Traceback (most recent call last):
  File "C:\Python\Python27_32b\Scripts\nbopenstart.py", line 3, in <module>
    main()
  File
"C:\Users\denis.akhiyarov\AppData\Roaming\Python\Python27\site-packages\n
bopen.py", line 50, in main
    nbopen(args.filename, args.profile)
  File
"C:\Users\denis.akhiyarov\AppData\Roaming\Python\Python27\site-packages\n
bopen.py", line 26, in nbopen
    server_inf = find_best_server(filename, profile)
  File
"C:\Users\denis.akhiyarov\AppData\Roaming\Python\Python27\site-packages\n
bopen.py", line 14, in find_best_server
    servers = [si for si in
notebookapp.list_running_servers(profile=profile) \
TypeError: list_running_servers() got an unexpected keyword argument
'profile'

On Mon, Nov 14, 2016 at 11:44 AM, Thomas Kluyver notifications@github.com wrote:

If all you want is the command line integration, try pip install nbopen. I'm not sure how to debug the explorer integration, sorry.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/takluyver/nbopen/issues/37#issuecomment-260406226, or mute the thread https://github.com/notifications/unsubscribe-auth/AHgZ5cmykeH7XeClykGA4rcfDMZPrOQbks5q-J3xgaJpZM4KxdNl .

takluyver commented 7 years ago

OK, give me a few minutes, I'm going to change how this works.

takluyver commented 7 years ago

OK, try pip installing it again (with --upgrade if necessary)

den-run-ai commented 7 years ago

It looks much better! But I hit another issue. I'll close this one.