-
Notifications
You must be signed in to change notification settings - Fork 1
Manual install failed! #9
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
Comments
Also running notebook 4.3.1 and jupyterlab 0.15.0 |
When I list the extension it sees that its available but also has a weird message
|
I see errors like this when the extension is installed but the Javascript didn't build correctly. Try running |
I'm on win64 so that's unlikely to work! I'll retry the manual steps and keep an eye out for any errors or warnings... |
Sorry, how UNIX-centric of me! I am currently refactoring the mimerender-cookiecutter to use |
In the meantime, just run |
Hmm, tried it again and I got the below error
The offending code in
Will nuke it and try from scratch... ...same error after
|
Earlier in the build log I'm getting some git errors:
...which are due to the use of the |
The git issue seems fixed by the advice give in the troubleshooting guide: ...but it appears I'm still getting the parse error for |
Ok, the
|
I'm sure it probably is :/ Thanks for having a look anyway - I don't know enough (any!) JS to really figure it out for myself. In case it's of use I've provided greater context to the above error:
|
The module parse lied does seem to reference the right path?
|
Ok, so then it sounds like the
|
Hmm, that folder does exist and
|
There seems to be a lot of noise on the web about this problem: ...but nothing I've tried including downgrading to the latest LTS node release has helped :/ |
It sounds like in both threads, it works when running with Node 5.x and doesn't work with Node 6.x (unless they remove This comments looks like it could be relevant: webpack/webpack#2462 (comment) |
Yeah, I tried Node versions I tried creating a
...and changing I can't see anything that's obviously wrong but don't know enough to tell. What part of webpack/webpack#2462 (comment) are you referring to? I saw the comments about using |
@dhirschfeld Thanks for your persistence here. Ok, have you had issues getting other mimerender extensions to work? Is this only affecting nbextensions? Or labextensions as well? I just created a branch that you can checkout and try: https://github.com/gnestor/jupyterlab_plotly/tree/windows-fix. I has 2 potential fixes:
|
Thanks a lot for trying to fix my problem! Sorry it took a while to test the branch - busy day today. Unfortunately no joy, but it's a different error so hopefully it means there's progress...
|
Applying only 3194164 and not the |
I think we're actually making process! I just pushed a new commit that uses |
Well, that worked to a point - it got rid of the
...so, despite the changes on the Sorry, I feel like I'm taking all your time and am not being much help. I can however test any proposed fixes and am happy to continue to do so, but I certainly don't expect you to invest a huge effort in fixing a Windows bug which doesn't affect you... |
For ref, I I did nuke node_modules before rebuilding:
I am on Node 7.5.0 at the moment and haven't (yet) tried this branch with any earlier node versions |
It's ok, if this is affecting all Windows users then it's really important! The only other thing that I can think of (at the moment) is that this line may not be working on your system:
https://github.com/gnestor/jupyterlab_plotly/blob/windows-fix/nbextension/webpack.config.js#L9 That is saying: don't transpile files in |
Success! 🎉 I wasn't sure what that line was supposed to be doing, but with your description I found this issue which seemed a likely culprit. I reverted to master, applied the below patch and the compilation was successful! C:\dev\code\jupyterlab_plotly\nbextension [master ≡ +0 ~1 -0 !]
λ git diff
diff --git a/nbextension/webpack.config.js b/nbextension/webpack.config.js
index 8a4ba85..115f674 100644
--- a/nbextension/webpack.config.js
+++ b/nbextension/webpack.config.js
@@ -6,7 +6,7 @@ var path = require('path');
var loaders = [
{
test: /\.js$/,
- exclude: /node_modules(?!\/jupyterlab_plotly_react)/,
+ exclude: /node_modules(?![\\\/]jupyterlab_plotly_react)/,
loader: 'babel-loader',
query: { presets: [ 'latest', 'stage-0', 'react' ] }
}, According to the issue that should also work on linux. I'd put it a PR but given it's 4-char fix it's probably easier to just test manually! Thanks again for your help sorting it out! |
Great news!!! I just cleaned up that branch and to simply use |
I can report that the build also succeeded on the latest |
Great! Thanks for your help! I will merge this shortly... |
On win64/py35. I cloned the repo. Ran

npm install
in both extension directories and then installed and enabled both extensions. AFAICS everything seemed to work, however when trying to display a plot in the notebook it doesn't display and I get the below error in the console:Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: