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

how to install scala kernel to sagemaker's jupyter? #175

Closed
richardxin opened this issue Jan 20, 2018 · 7 comments
Closed

how to install scala kernel to sagemaker's jupyter? #175

richardxin opened this issue Jan 20, 2018 · 7 comments

Comments

@richardxin
Copy link

is scala supported in jupyter notebook under sagemaker? if not, how to install scala kernel to sagemaker's jupyter?

@djarpin
Copy link
Contributor

djarpin commented Jan 22, 2018

Hi @richardxin . I was able to install the Scala kernel on a SageMaker Notebook Instance by:

  1. Opening a terminal from the Notebook dashboard
  2. running git clone https://github.com/jupyter-scala/jupyter-scala.git
  3. cd jupyter-scala
  4. ./jupyter-scala
  5. When that completed, exiting from the terminal, refreshing the Notebook dashboard page, and selecting "Scala" from the "New -> Notebook" menu.

Just to confirm, there isn't any special support for Scala in SageMaker at the moment. So, we don't have an equivalent to the SageMaker Python SDK for Scala.

Best of luck, and thanks for your interest in SageMaker!

@richardxin
Copy link
Author

Thanks

@djarpin djarpin closed this as completed Jan 22, 2018
@vlall
Copy link

vlall commented Oct 18, 2018

This doesnt work anymore.

@mct0006
Copy link

mct0006 commented Nov 29, 2018

I can confirm @vlall's point--specifically, the ./jupyter-scala command returns an error. @richardxin, any idea as to how to install it now?

@chriszheng10
Copy link

Hi @vlall and @mct0006,

Looks like the repo @djarpin mentioned before has been revamped this year and the previous instructions are out of date.

In the updated repo's README, I discovered the installation instructions through their project website: http://almond-sh.github.io/almond/stable/docs/quick-start-install
I was able to install the Scala kernel following those instructions. Hopefully that helps!

@dinhnguyen92
Copy link

Unfortunately, the original instruction is obsolete, and the installation instructions link above is now dead. For those who struggle with this like I did, here's how I installed the Scala kernel in my SageMaker Jupyter Notebook instance:

1/ Open Jupyter Lab (I personally find it easier to work in Jupyter Lab)
2/ File > New > Terminal
3/ In the terminal, run git clone https://github.com/jupyter-scala/jupyter-scala.git
4/ Once the repository has been cloned, cd jupyter-scala
5/ cd scripts
6/ Run ls. Verify that you have coursier.sh and generate-launcher.sh in the current directory
7/ Run vi generate-launcher.sh to edit this script
8/ Press "insert" to start editing. Find the line coursier bootstrap \ and change it to ./coursier.sh bootstrap\. Save and exit vim
9/ Run ./generate-launcher.sh
10/ Run ls. Verify that the file almond is now present in the current directory
11/ Run ./almond --install

@arash2060
Copy link

arash2060 commented Oct 19, 2020

I've been happy with https://pypi.org/project/spylon-kernel/ both on my laptop and on sagemaker

pip install spylon-kernel
# or
conda install -c conda-forge spylon-kernel
python -m spylon_kernel install

Launch jupyter notebook and you should see a spylon-kernel as an option
in the New dropdown menu.

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

No branches or pull requests

7 participants