Comments (7)
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
from amazon-sagemaker-examples.
Hi @richardxin . I was able to install the Scala kernel on a SageMaker Notebook Instance by:
- Opening a terminal from the Notebook dashboard
- running
git clone https://github.com/jupyter-scala/jupyter-scala.git
cd jupyter-scala
./jupyter-scala
- 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!
from amazon-sagemaker-examples.
Thanks
from amazon-sagemaker-examples.
This doesnt work anymore.
from amazon-sagemaker-examples.
I can confirm @vlall's point--specifically, the ./jupyter-scala command returns an error. @richardxin, any idea as to how to install it now?
from amazon-sagemaker-examples.
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!
from amazon-sagemaker-examples.
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.
from amazon-sagemaker-examples.
Related Issues (20)
- Dataset not working in example in notebook A Move Amazon SageMaker Autopilot ML models from experimentation to production using Amazon SageMaker Pipelines
- Broken lnks HOT 1
- How do you use the custom generator to train the TensorFlow model on PageMaker?
- [Example Request] Minimal Example for Fine Tuning a LLM with FSDP utilizing the HuggingFace Trainer
- [Bug Report] Forbidden(403) on Introduction to JumpStart - Sentence Pair Classification
- getting error:
- Getting "TypeError: can only join an iterable" while running "print(predictor.predict(test_data).decode("utf-8"))"
- [Bug Report] Example notebook has incorrectly formatted serving.properties
- AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'
- Inference Recommender Job fails
- [Bug Report]Error with using dgl library in Sagemaker
- Deploy this TheBloke/vicuna-13B-v1.5-GGUF model on AWS
- Parameter validation failed: Unknown parameter in PrimaryContainer HOT 2
- [Bug Report] - README - Train EleutherAI GPT-J with Model Parallel Link Broken
- smddp_deepspeec_example doesn't run because of dependency issues.
- Unable to download model artifacts due to 403 forbidden error
- Alter JupyterLab dockerfile to block target domain / IP from running contiainer
- [Bug Report] RuntimeError when running instruction fine-tuning on mistral 7b, Sagemaker Jumpstart
- Torch not compiled with CUDA enabled when deploying T5 using Triton
- [Bug Report]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-sagemaker-examples.