Giter Site home page Giter Site logo

Comments (5)

maasg avatar maasg commented on May 23, 2024

this is a collision with the relative import option in Scala.
You can normally do:

import foo.bar
import bar.Beer // resolves to foo.bar.Beer

And it's dependent of the declaration order.
It's possible that behind the scenes there's an import for notebook.io and your io.... is understood as a relative import.
To work around this, you should 'anchor' the import, like this:

import _root_.io.jvm.uuid._

which should resolve your issue.

from spark-notebook.

james64 avatar james64 commented on May 23, 2024

Thanks maasg for reply. I know this feature of scala. My question was more targeted for why spark-notebook is importing something like this into user session.

I did not know about this _root_ thing however. Thanks for that.

from spark-notebook.

vidma avatar vidma commented on May 23, 2024

it's due to this line:

import notebook._

here it's importing stuff like widgets etc.

I agree it would be better not to override the popular io package, so maybe this like can be changed, but need to be careful not break existing things...

from spark-notebook.

james64 avatar james64 commented on May 23, 2024

It is not a question. It is usability issue report. Do I understand correctly that nothing will be done about this?

from spark-notebook.

vidma avatar vidma commented on May 23, 2024

it can be fixed, but it's hard not to overlook something...

from spark-notebook.

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.