-
Notifications
You must be signed in to change notification settings - Fork 76
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
DEV: Allow symlink in Windows for editable install #1373
Conversation
editable install if OS allows it.
Codecov Report
@@ Coverage Diff @@
## main #1373 +/- ##
=======================================
Coverage 84.77% 84.77%
=======================================
Files 91 91
Lines 8021 8021
=======================================
Hits 6800 6800
Misses 1221 1221 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me on Windows!
When I tried to run it again, however, I got the following traceback. Any idea what happened?
|
First time I tested using |
Is that just with this patch or also on |
I'll check. |
So it works most of the time on this branch, all the time on |
@javerbukh , is your problem same as jupyterlab/jupyterlab#11934 ? |
Yes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such strong irony that I'm providing a review from the macOS side, rather than the Windows side!
Checked all the tools on macOS and everything seems to look good to me! I'll take that @javerbukh's review for the Windows side clears this to be merged! (minus the bug above)
I cannot be sure since @javerbukh says he only sees that Lab problem with this patch! Jesse, what say you? |
I think it's ok since the bug is upstream. If we open an issue for the bug then I am ok merging this. |
Is noting this under known issues sufficient? |
Okay, I opened #1391 for that known issue. I'll merge this. 🤞 Thanks for all the reviews! |
Description
This pull request is to address #1218 (comment) by allowing symlink on Windows when it is possible.
For my own Windows setup, symlink is impossible because Miniconda is on C drive by source code in on D. With this patch, I confirmed that it still makes a full copy as in #1218 without crashing. Imviz seems to work in notebook and standalone modes.
For my WSL2 setup, I can confirm that this patch still does symlink, as expected. Imviz seems to work in notebook but I cannot test the standalone portion due to voila-dashboards/voila#773 , though I don't see why it wouldn't work.
Devs who review this should check that the files are copied or symlinked properly and at least run a quick example notebook. You should install this PR branch with
pip install -e .
. @duytnguyendtn , since you are on Windows, maybe you can see if it does symlink without error for "modern Windows". If you get that admin permission error again with this patch, then maybe this is not possible after all.Maybe @vidartf and @maartenbreddels are interested to review too?
Fixes #1282
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?