How to see user defined variables in spark shell

2022-12-12 Thread Salil Surendran
I often define vals and vars in spark shell and after some time I forget
the ones I defined. I want to see only the ones I had defined and the ones
that come from spark. I have tried the following commands but all of them
show the variables and defs defined by spark also

$intp.definedTerms
  .map(t => s"${t.toTermName}: ${$intp.typeOfTerm(t.toTermName.toString)}")
  .foreach(println)

$intp.definedSymbolList,
$intp.namedDefinedTerms,
$intp.definedTerms.filter(x => !x.startsWith("res")).foreach(println),
$intp.allDefinedNames.filter(!_.startsWith("$"))

Any other command that works?
-- 
Thanks,
Salil
"The surest sign that intelligent life exists elsewhere in the universe is
that none of it has tried to contact us."


Ctrl - left and right now working in Spark Shell in Windows 10

2022-11-01 Thread Salil Surendran
I installed Spark on Windows 10. Everything works fine except for the Ctrl
- left and Ctrl - right keys which doesn't move a word but just a
character. How do I fix this or find out what are the correct bindings to
move a word in Spark Shell

-- 
Thanks,
Salil
"The surest sign that intelligent life exists elsewhere in the universe is
that none of it has tried to contact us."