Comments (6)
load.jar("/home/foo/bar.jar")
from almond.
@praveen-srinivasan Thanks for answering that !
from almond.
Thank you guys!
from almond.
I couldn't understand above solution. I have a sbt assembled "jar" file. How to include that in jupyter-scala ?
from almond.
If you want to add a local jar to Jupyter Scala , follow the instructions :
Create a jar file for your project work
Find the path to the jar
Go to Jupyter Scala cell and type all the instructions in a single cell or split them in different cells as per your convenience
import ammonite., ammonite.ops.
val path = java.nio.file.FileSystems.getDefault().getPath("/home/animesh/Bureau/lastest_n2s3/out/artifacts/root_jar/root.jar") // here inside the " " add your path, I have added mine for example
val x = ammonite.ops.Path(path)
interp.load.cp(x)
It works for me, please check for yourself.
@babak12 @Mageswaran1989
from almond.
Closing this now that the upcoming version is about to become the default one. It mostly wraps Ammonite now. Ask for help there if it's still a problem for you.
from almond.
Related Issues (20)
- Windows Installation: Coursier hangs after downloading all Maven files, Kernel does not install HOT 3
- question: how to import code from an external module HOT 5
- Any option for Almond to point to local custom-built spark jar instead of downloading it from ivy/maven?
- validateExamples CI task does not run against all supported Scala versions
- Almond from Maven Central? HOT 2
- 0.13.4 release not available? HOT 2
- Lots of output messages cause kernel to stuck HOT 1
- Create NotebookSparkSession error on windows HOT 4
- Create NotebookSparkSession on windows error Failed to connect to timeline server
- Add section in docs about custom Toree magics
- Almond on windows is not use spark config in spark-default and hadoop config in hadoop config dir
- Docker ivy command stalls with a mounted volume
- named imports cannot follow wildcard imports HOT 1
- Scala 2.13.8 Almond 0.13.14 issue
- version compatibility with almond-sh on windows when use spark HOT 1
- Almond 0.13.2: InterpreterToIOInterpreter Error for Scala mixin type parameter constraint HOT 1
- Could not find or load main class coursier.bootstrap.launcher.Launcher HOT 2
- jars mentioned in `CLASSPATH` is not available to use HOT 1
- Add support to java 11 with scala 3 for Docker images HOT 2
- Notebook hangs when top-level variable modified repeatedly
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 almond.