jupyter_boilerplate icon indicating copy to clipboard operation
jupyter_boilerplate copied to clipboard

Snippets Menu did't appear

Open showteeth opened this issue 6 years ago • 3 comments

After checking "Snippets Menu" in Configurable nbextensions, Snippets did't appear as expected, then I checked out "JavaScript console", found a red line :".html(menu_item_spec.name)---Uncaught (in promise) TypeError: Cannot read property 'name' of undefined" at main.js(line 181) , while I don’t know much about JS, could you please help with it? Thanks!

showteeth avatar Mar 04 '19 07:03 showteeth

I'm sorry, but I doubt that I can help — especially without more details. I just tried from a brand-new conda installation in a brand-new user folder on my computer, and it worked perfectly. Did you refresh your page? How did you install it? How did you install the rest of your jupyter-notebook installation? What are the various versions of everything you're using?

moble avatar Mar 05 '19 03:03 moble

I am sorry! I have refreshed page several times, and I installed "Snippets Menu" with jupyter_contrib_nbextensions and I get the rest of jupyter-notebook extensions installed smoothly with jupyter_contrib_nbextensions. jupyter notebook --version : 5.7.4 , conda --version : 4.6.7 and Chrome --version : 72.0.3626.96. Thanks!

showteeth avatar Mar 05 '19 08:03 showteeth

Those are almost identical to my versions of everything (my Chrome is 72.0.3626.119). I guess you must have modified the menus somehow, and forgotten to put a name in one of the sub-menus. Did you alter the JSON string in the "Nbextensions configuration" panel? Do you have something about this in your custom.js file? Did you read the README?

moble avatar Mar 05 '19 15:03 moble