-
Notifications
You must be signed in to change notification settings - Fork 382
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
Build instructions from ReadMe.md don't work on Windows #5616
Comments
Here's a PowerShell version that definitely works (assuming conda create -y -n beakerx python=3.5 jupyter pandas
# activate beakerx # seems to work, but doesn't leave CONDA_PREFIX set
cmd.exe /c "activate beakerx && set > beaker.env"
gc .\beaker.env | ForEach { $name,$value = $_ -split "=",2; sc Env:$name $value }
conda install -y -c conda-forge openjdk
./gradlew --no-daemon build
./gradlew --no-daemon kernelInstall
./gradlew --no-daemon :beakerx:install
cd beakerx
pip install -e .
python -m beakerx.install --enable --prefix="${CONDA_PREFIX}"
jupyter notebook I think this works for DOS:
|
Here is the slightly modified version that allows to skip tests and not to reset gradle daemon each time:
I've created a file named |
I've performed some additional searches. It seems to be this problem with changing environments: conda/conda#1519 |
Yes @altavir, that's exactly it. People need to stop using cmd -- especially people who're trying to write cross-platform things. I have Bash on Windows, and I even have PowerShell on Linux -- but CMD is dead to me 😉 I gave them a tip to do roughly the same thing I showed above to slurp up the environment changes from the cmd process... Fwiw, my groovy kernel works and everything. The only thing that made me sad was realizing that the I'm working on a cross-platform PowerShell kernel for Jupyter, but I love the polyglot story of Beaker -- are there docs of how you implemented the communication? I mean, what would a Beaker-compatible kernel need to do beyond what Jupyter requires? |
The same for me. I also have bash installed on windows, though I mostly use it for ssh only, since powershell is much more... well... powerful and concise (it also supports pretty large POSIX subset not to feel any difference). I want to use Powershell on Linux also, but I am waiting for a repository debian release. |
Thanks for the report. we are stuck with what conda does but we can make it correct and document the windows workarounds at least. |
I've tried this, but, the gradlew doesn't exist anywhere for me. Is it supposed to be executed from a particular directory or something? where are the build.gradle files we're hoping for? |
gradlew is part of the source 😉 |
The line
source activate beakerx
needs to be justactivate beakerx
The line:
./gradlew --no-daemon :beakerx:install
has to be run as administrator in order to make symlinks...The line
python -m beakerx.install --enable --prefix="${CONDA_PREFIX}"
would need to be `python -m beakerx.install --enable --prefix="%CONDA_PREFIX%"The text was updated successfully, but these errors were encountered: