GithubHelp home page GithubHelp logo

Adding a Jar about almond HOT 6 CLOSED

almond-sh avatar almond-sh commented on July 21, 2024
Adding a Jar

from almond.

Comments (6)

praveen-srinivasan avatar praveen-srinivasan commented on July 21, 2024 1

load.jar("/home/foo/bar.jar")

from almond.

alexarchambault avatar alexarchambault commented on July 21, 2024

@praveen-srinivasan Thanks for answering that !

from almond.

babak12 avatar babak12 commented on July 21, 2024

Thank you guys!

from almond.

Mageswaran1989 avatar Mageswaran1989 commented on July 21, 2024

I couldn't understand above solution. I have a sbt assembled "jar" file. How to include that in jupyter-scala ?

from almond.

animeshsrivastava24 avatar animeshsrivastava24 commented on July 21, 2024

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.

alexarchambault avatar alexarchambault commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.