-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Review docs on troubleshooting and correcting a stale JS build #872
Comments
We have git hooks (in top-level git-hooks folder) that should ensure js is up-to-date on checkout/pull, so only local changes you have made since checkout will require rebuild. Personally, I would discourage putting
so that I can turn this on when I'm debugging javascript. |
@minrk, good points. I wasn't aware of those git hooks... One question: the git hooks do the equivalent, if I read them correctly, of rerunning Do you know if that's smart enough to track dependencies and only build what's needed, or is it stupid and does it do a full rebuild? Just curious... |
@fperez it's in between. It uses a very simple check for whether js or less files changed, so it shouldn't run if only Python files or docs change. It may run slightly more often than it should, though. It's also relatively rare for there to be a PR against the notebook that's not JS, so it doesn't make a difference very often. Since our js build takes so long now, I find that I don't use the hooks any more, and only build manually because I often check out branches just to look at them, not necessarily run them. |
Does anyone want to tackle this for 5.0, or shall we bump it again? |
I've struggled with this many-a-times. Here are some thoughts:
|
I started a PR to update CONTRIBUTING.rst. It's editable, so feel free to add to it. |
@gnestor do you think we should do anything more on this for 5.0? Or do you want to close it or bump it to a later milestone? |
@willingc Would you like to take a stab at the FAQs/troubleshooting tips? I'm not sure where those should live... @takluyver I'll bump this in the meantime. |
@gnestor Hey, how can I help with this issue? |
Hi @thachmai! Thanks for offering to contribute! If you take a look at the description:
The answer is:
I'm not sure what we need here...
The troubleshooting docs are located at Line 76 in 5711075
|
Do you still need help with these issues? (I'm rather new, but would like to find a way into supporting open-source-projects) |
Hi @JohannaHillebrand! 👋 Thanks for reaching out. @Thai-Morris Have you made any progress on this? If not, @JohannaHillebrand feel free to take the lead on this 👍 |
Closing as the build process with the current state of Contributing guidelines are now in https://jupyter-notebook.readthedocs.io/en/latest/contributing.html. To contributed to the classic notebook UI, please refer to the NBClassic documentation: https://nbclassic.readthedocs.io/en/latest/ Thanks all! |
npm run build
prior tojupyter notebook
.npm run build
each time that I run new code updatesnpm run build
with link to more detailsFeedback from @fperez about stale JS in issue #708
The text was updated successfully, but these errors were encountered: