Open KubaOfca opened 1 year ago
+1
just use
%jars XXX.jar
@jimmybow: But what if you want to import a class that is not contained in a .jar file, as @KubaOfca's example suggests?
that's java...not python @@,
so you need to compile your code MyClass.java to a jar library package file.
I want to import a custom java script into an
IJava
notebook. Is it possible?I'm trying to do it this way, but it doesn't seem to work. I'm new to "Java" so if I'm doing something wrong please correct me.
My working directory structure:
Test.ipynb:
MyClass.class/MyClass.java: