-
Notifications
You must be signed in to change notification settings - Fork 238
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
Add jars via classpath #61
Comments
Yep, sorry, it should land here. That's like classpath.addPath("/path/to/file.jar") |
It does not work now
|
|
If you want to add a local jar to Jupyter Scala , follow the instructions :
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. |
I created an sbt plug-in for exporting classpath for Ammonite and Jupyter Scala |
If someone used @animeshsrivastava24 code above and encountered compilation failed error below. |
@key2Love Can you explain how are you getting the value of x without importing the libraries? |
@animeshsrivastava24 I didn't import the libraries before, it seems that almond imports these libraries automatically. I test this by restarting the kernel, the console still reported twice report error. |
The new README does not state how to add local jars. In the current version
load.jar()
doesn't work anymore. Is it possible to load jars directly or do they need to be published to a local maven repo?The text was updated successfully, but these errors were encountered: