Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Hangs after clicking Download as Zip, and no yaml or readme file created on install #20

Open
carolynwclayton opened this issue Jun 7, 2019 · 0 comments

Comments

@carolynwclayton
Copy link

I am having some trouble getting the nbzip extension to work / install correctly. The document cookie never gets a zipToken, and the "Still zipping" loop continues forever. In addition, no yaml or readme file gets created for use by nbextensions.

In regards to the zipping loop, it appears that .jupyter/nbconfig/tree.json expects a path to a javascript file (currently set to "nbzip/tree"), however it seems the tree.js file is not referencing the handlers, or that there is some main file missing since the zipToken never gets set or updated.

Steps I took to install:
pip install nbzip
(issues with writing to /usr/local/share/jupyter and the jupyter_notebook_config.json led me to use the user flag)
jupyter serverextension enable --py nbzip --user
jupyter nbextension install --py nbzip --user
jupyter nbextension enable --py nbzip --user

Contents of .local/share/jupyter/nbextensions/nbzip on initial install and enable:
tree.js

I've also tried copying the full contents of .local/lib/python2.7/site-packages/nbzip into .local/share/jupyter/nbextensions/nbzip, just in case it needed to access the handlers and init files. I've also tried manually creating a yaml file and the readme, which fixes the nbextensions configure tab, but does not fix the zipping loop.

The format of the document.cookie: "_pk_id.1.9e6f=<16 alpha-numeric>.<10 numeric>.<1 numeric>.<10 numeric>.<10 numeric>.; _xsrf=<1 numeric>|<8 alpha numeric>|<32 alpha numeric>|<10 numeric>"

Screen Shot of zipping loop
Screen Shot of zipping loop

Screen Shot of lack of yaml and readme file
Screen Shot of lack of yaml and readme file

Screen Shot after manually creating yaml and readme
Screen Shot after manually creating yaml and readme

Versions:
jupyter=1.0.0
jupyter_contrib_nbextensions=0.5.1
nbzip=0.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant