Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test some nbextensions to make sure everything works with 5.0 #2151

Closed
2 tasks done
ellisonbg opened this issue Feb 7, 2017 · 15 comments
Closed
2 tasks done

Test some nbextensions to make sure everything works with 5.0 #2151

ellisonbg opened this issue Feb 7, 2017 · 15 comments

Comments

@ellisonbg
Copy link
Contributor

ellisonbg commented Feb 7, 2017

During the 5.0 dev cycle, nbextensions stopped working. This was due to the webpack stuff and should be fixed now. As part of the 5.0 release cycle, we need to install and test some of the popular nbextensions with 5.0. Let's track a list here:

  • nbgrader create assignment
  • cite2c
@ellisonbg ellisonbg added this to the 5.0 milestone Feb 7, 2017
@takluyver
Copy link
Member

Ping @juhasch @jcb91 @jfbercher we're nearing notebook 5.0, so any help testing extensions is welcome. I don't think there are many major architectural shifts that might break things (we backed off the webpack stuff), but it's always possible.

@jfbercher
Copy link

I have checked most of the extensions in jupyter_contrib_nbextensions, including latex_envs, toc2, highlight_selected_word, hinterland, collapsible headings, hide_menubar, exercise, exercise2, highlighter, python-markdown, select keymaps, ... and all that work out of the box :-)

I had just a problem of interaction between python_markdown and jupyter_latex_envs where rendering the code in markdown using python_markdown unrendered equations elsewhere. The problem was with a mathjax StatupDelay configured in latex_envs. Don't know exactly why. Removing it restored the correct behaviour (it worked in 4.3).

Also, I had to install some extra js to run 5.0dev: proptypes, preact, and preact-compat

@juhasch
Copy link
Contributor

juhasch commented Feb 8, 2017

@jfbercher Thanks for checking! What do you need the StartupDelay for ?

@jfbercher
Copy link

@juhasch I must admit that I do not remember... 👎

@Analect
Copy link

Analect commented Feb 14, 2017

@jfbercher
I think I'm coming up against a problem that you allude to above.

I had to install some extra js to run 5.0dev: proptypes, preact, and preact-compat

I've asked over here, but in the context of using a Dockerfile to install a dev version of the notebook, could you advise how this might be fixed, or does it require that the package.json be extended to include these additional packages?

@jfbercher
Copy link

@Analect I only see an error message, as you have, indicating these missing dependencies and installed using npm install proptypes and so on. For your docker file, you should probably add then to the package.json.
I do not know why these packages are missing, if it is just for the dev version (but not mentioned in the install doc) or it will be included in the GA version.

@jcb91
Copy link
Contributor

jcb91 commented Feb 18, 2017

I haven't had a chance to try 5.0 yet, but will report back if I discover anything relevant...

jcb91 added a commit to jcb91/jupyter_contrib_nbextensions that referenced this issue Feb 18, 2017
 * notebook 4.3, 4.4, 5.0.0b1 (see jupyter/notebook#2151)
 * python 3.6 on travis (appveyor doesn;t provide 3.6 yet)
@jcb91
Copy link
Contributor

jcb91 commented Feb 18, 2017

I had to install some extra js to run 5.0dev: proptypes, preact, and preact-compat

I think this is happening on our appveyor (Windows) CI builds at https://ci.appveyor.com/project/jcb91/ipython-notebook-extensions-ynb9f/build/master-347/job/tqivj75ifr7vr4s8#L775, though the linux build on travis seems to install 5.0.0b1 without complaint: https://travis-ci.org/ipython-contrib/jupyter_contrib_nbextensions/jobs/202988147#L386

@ellisonbg
Copy link
Contributor Author

@gnestor could you test the nbgrader create assignment celltoobar with master?

@gnestor
Copy link
Contributor

gnestor commented Feb 28, 2017

@ellisonbg Sure thing 👍

@gnestor
Copy link
Contributor

gnestor commented Feb 28, 2017

nbgrader appears to be working as expected!

image

@gnestor
Copy link
Contributor

gnestor commented Mar 1, 2017

I had to install some extra js to run 5.0dev: proptypes, preact, and preact-compat

@minrk Is there a chance that an npm install task is missing somewhere? I saw that some other people were having issues doing a dev install at #2056.

@ellisonbg
Copy link
Contributor Author

@gnestor great, many thanks!

@minrk
Copy link
Member

minrk commented Mar 1, 2017

@gnestor possibly, though it seems to be working for me. What exact commands are you executing?

When I run it from a clean environment:

git clone https://github.com/jupyter/notebook
cd notebook
pip install -e .

everything gets installed. The handling of preact is a bit fiddly, since they are only npm packages but we need to load them as if they were bower. Maybe it doesn't correctly re-run npm install if node_packages is present but needs updating.

@gnestor
Copy link
Contributor

gnestor commented Mar 1, 2017

@minrk I haven't been able to reproduce it but I've seen reports of it.

Maybe it doesn't correctly re-run npm install if node_packages is present but needs updating.

I think that explains it. I took a look at https://github.com/jupyter/notebook/blob/master/setupbase.py#L345-L377 and it looks like it's running npm install based on whether node_modules exists and whether the created time of node_modules is older than the package.json. That sounds right... 🤔

Let's close this issue because it's resolved and keep an eye on #2056 for any other reports. Hopefully it's just an edge case affecting upgrades of dev installs.

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

No branches or pull requests

8 participants