--editable option is not compatible with --no-run
See original GitHub issuerepo2docker
command fails when using both --editable
and --no-run
options simultaneously.
$ jupyter-repo2docker --no-run --editable .
To Mount volumes with -v, you also need to run the container
I believe that the solution would be to check whether args.run
is True
before executing this line:
I can confirm that this solution works, but I haven checked if it can have any further consequence in other scenarios.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
editable mode is not supported · Issue #256 - GitHub
Recently, tests that were previously passing have started failing, possibly due to pypa/pip#6331. The error message is: Obtaining ...
Read more >Edit option not coming up in Word. - Microsoft Community
Edit option not coming up in Word. · 1.Go to Control Panel>User Accounts>Credentials Manager>Windows Credentials>General Credentials. · 2.remove ...
Read more >The Edit option is not available in ArcGIS Web AppBuilder pop ...
Solution or Workaround. To enable the Edit option in the ArcGIS Web AppBuilder pop-ups, reconfigure the settings in the Editable layers ...
Read more >Why can't I call pip with --target and --editable? - Stack Overflow
A workaround to this was mentioned here and it involves to first create a wheel and then install from that wheel. Here's a...
Read more >bazel attr
Incompatible changes --incompatible_windows_escape_jvm_flags is enabled by ... (or edit existing configurations), go to the run configuration dropdown and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I totally agree with that. That was the original of my confusion here!
Alright. I’ll do that.
Oh, I had missed this! Thanks for pointing it out. It, indeed, solved my problem.
Ok, after investigating it a bit deeper I see that I assumed something else which is not really true, so I’ll explain my use case to see if we can figure out what to do:
What I want to achieve is the following: I have a python package which might be used from a notebook and I want to distribute a docker image that allows running a notebook already configured to use it.
The requirements are:
repo2docker is an excellent solution, as I can:
jupyter-repo2docker --no-run --image-name my-project .
docker save -o my-project.tar my-project
my-project.tar
fileAnd in the receiving end I do:
docker load -i my-project.tar
docker run -p8888:8888 my-project
Now a new requirement shows up: The source code needs to be editable while running jupyter. So, instead of distributing only the image, I want to distribute the source code of the project alongside the image and mount the source code path as a volume so that it’s visible and editable from within the container.
And this is what I thought
--editable
was for, installing the project in editable mode, and why I wanted to use it alongside--no-run
, because I won’t be running the image at build-time but later on.So I ended up figuring out that the things that I really need are:
-e
to this line:https://github.com/jupyter/repo2docker/blob/f18835fd061911fefab0a792defb2cb990fada67/repo2docker/buildpacks/python/__init__.py#L74
The last step is actually optional, as if I skip it the project works equally well, and code can even be edited from within jupyter.
The actual questions here are:
-e
flag be added permanently on that line, or should it be optional? I think it would make no harm to make it permanent.--editable
flag? I think it should, because otherwise the source code is not really editable anyway (because changes won’t be actually applied).--editable
flag, then--no-run
should be made to work alongside it./home/username
, which is not the ideal thing if later on a different user has to mount a volume at that path once the image has been distributed. Perhaps a generic path (/home/ubuntu or /app) would be better? Or even make it optional?