Comments (5)
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.
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.
it's due to this line:
spark-notebook/conf/scripts/init.sc
Line 4 in 1192673
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.
It is not a question. It is usability issue report. Do I understand correctly that nothing will be done about this?
from spark-notebook.
it can be fixed, but it's hard not to overlook something...
from spark-notebook.
Related Issues (20)
- Disabled Open SparkUI link after rebuild HOT 1
- [error] (subprocess/compile:compileIncremental) java.lang.NoClassDefFoundError: scala/reflect/internal/Reporter HOT 4
- SparkUI executor tab failing HOT 1
- Error in Mac os
- Instructions for launching spark-notebook on EMR 5.x HOT 5
- [Docker] Generated port is incorrrect HOT 4
- Progress bar buggy (spark 2.3) HOT 1
- NoClassDefFoundError ParquetDecodingException in Loading csv HOT 2
- how to read a json or csv format from local to spark notebook docker on mac. Please help. Thanks
- `Exception in implicit renderer` when running simple scala test
- After installing Spark Notebook the cells do not run or show any output HOT 3
- Why collect on a big dataframe not working? HOT 1
- how to enable/use some profile via cmd line
- java 12 is too old, java 1.6+ requested(problem solved)? HOT 1
- http://spark-notebook.io is down? HOT 7
- GraphChart: Display Node & Edge Values
- Classes publicly available for dependency? HOT 2
- Find new source for sbt-git-stamp, other than bintray.com HOT 3
- Can't download on website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-notebook.