Skip to content
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

Support for windows #19

Open
30atm opened this issue Jul 16, 2016 · 1 comment
Open

Support for windows #19

30atm opened this issue Jul 16, 2016 · 1 comment

Comments

@30atm
Copy link

30atm commented Jul 16, 2016

Hi,
I see you were referring to .sh files in the json settings file
please could you advise if there is a separate config for windows

thank you

@pprzetacznik
Copy link
Owner

pprzetacznik commented Jan 9, 2019

I recommend installing IElixir in WSL environment, eg. Ubuntu. I have not tested IElixir and Elixir/Erlang/OTP on Windows but if you manage to install, you can create kernel.json file in ./resources/ielixir with content given in install_script.sh file, ie.:

{
   "argv": ["'###PUT HERE PATH TO THE START_SCRIPT.SH FILE###'", "{connection_file}"],
   "display_name": "Elixir",
   "language": "Elixir"
}'

After that you should install your kernel in Jupyter with:

jupyter kernelspec install --user --replace --name=ielixir ./resources/ielixir

And run migration for IElixir:

ELIXIR_ERL_OPTIONS="-smp enable" mix ecto.migrate -r IElixir.Repo

start_script.sh is also very simple. It's run by Jupyter with the connection_file path, eg.:

./start_script.sh [connection_file]

so your cmd script should consume connection_file argument and run following file:

ELIXIR_ERL_OPTIONS="-smp enable" CONNECTION_FILE={###CONNECTION_FILE_ARG###} mix run --no-halt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants