Forum Discussion

cahenning's avatar
cahenning
Icon for Microsoft Employee rankMicrosoft Employee
1 year ago
Solved

Custom Libraries in Fabric Notebook Environment

I'm trying to use some custom libraries in a notebook by uploading JAR files to my notebook environment in the "Custom libraries" section. I've verified that the jars are attached with the "spark.spa...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi cahenning,

     

    The import fails due to a known limitation in Fabric Notebooks — the Scala REPL doesn't recognize classes from dynamically added JARs at compile time.

    As a workaround, you can use reflection to interact with the class or repackage your code as a fat JAR (including all dependencies) and try again. Direct import may not work unless Microsoft updates the REPL classloading behavior.

     

    Regards,

    Vinay Pabbu