dependabot[bot] on pip
dependabot[bot] on pip
Bump notebook from 6.1.5 to 6.4… (compare)
alexarchambault on master
alexarchambault on main
alexarchambault on gh-pages
Update website (compare)
alexarchambault on fix-publish-settings
alexarchambault on master
Fix upload-launcher job Resume 0.13.0 CI jobs Vendor website scripts repo It… and 6 more (compare)
Hello! In which version of Jupyter Notebook Almond is worked? Because I'm facing this problem:
Traceback (most recent call last):
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\web.py", line 1699, in _execute
result = await result
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\joaqchem\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post
type=mtype))
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
value = future.result()
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\joaqchem\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
value = future.result()
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\joaqchem\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
value = future.result()
File "C:\Users\joaqchem\anaconda3\lib\site-packages\tornado\gen.py", line 209, in wrapper
yielded = next(result)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
**kw)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:\Users\joaqchem\anaconda3\lib\site-packages\jupyter_client\launcher.py", line 138, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Users\joaqchem\anaconda3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\joaqchem\anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
I've Python 3.7.3, Scala 2.11.12 and Almond 0.6.0
I think there might be a subtle problem with Almond and 2.13.
It depends on ammonite's repl artifact:
[info] org.jline:jline-terminal:3.14.1
[info] +-com.lihaoyi:ammonite-repl_2.13.3:2.2.0-4-4bd225e
[info] | +-sh.almond:scala-interpreter_2.13.3:0.10.9 [S]
Which actually uses jline 3.14.1, but I think that's conflicting with Scala's own jline (which was changed to 3.15.0 in 2.13) which isn't binary compatible, so missing link barks:
[error] Category: FIELD NOT FOUND
[error] In artifact: jline-3.15.0.jar
[error] In class: org.jline.utils.Log
[error] In method: isEnabled(java.util.logging.Level):122
[error] Access to: org.jline.utils.Log.logger
[error] Problem: Field not found: logger
[error] Found in: jline-terminal-3.14.1.jar
Even most recent releases of ammonite-repl use 3.14.1, which means merely updating almond won't help on 2.13
This is perhaps obscure, but just want to check with @alexarchambault that I'm understanding this correctly? And transitive exclusion might be the only way to fix it? Or silencing missinglink.
java.lang.IllegalArgumentException: wrong number of arguments
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
ammonite.$sess.cmd1$Helper.<init>(cmd1.sc:2)
ammonite.$sess.cmd1$.<clinit>(cmd1.sc:7)
java.lang.reflect.Constructor[?0] = public ammonite.$sess.cmd0$Helper$Foo(ammonite.$sess.cmd0$Helper,long,java.lang.String)
Helper
?
Excitingly, I've now managed to dance through the minefield of my corporate setup, and got almond working. Yeyz...
I can't figure out how to enable "metabrowse" or any form of code completion though.
RUN ./almond --install --log info --metabrowse --id scala2_13 --display-name "Scala 2.13" --global --jupyter-path /opt/conda/share/jupyter/kernels
Should that work? Is there anything else to configure in Juypter itself?
ah almond-sh/almond#441
case class Something(i: Int)
cmd3.sc:20: not found: value res3_1
.declareVariable("res3_1", res3_1); Iterator() },
^Compilation Failed
Compilation Failed
I've been trying to install the exciting 0.11.2 release ... but I get
Cannot find default main class. Specify one with -M or --main-class.
Against the command
/tmp/cs bootstrap almond:0.11.2 --scala 2.13.4 -i user --default=true --sources -o almond
Can anyone see what might be wrong here?
Cannot find default main class. Specify one with -M or --main-class.
Using the suggestion of adding -M almond.ScalaKernel
It appears to install and I see the scala kernel option in ipython notebook. However, when I select this kernel I get a 500 internal server error.
A couple of questions: would macros work in almond?
object Report {
implicit val pickler : ReadWriter[Report] = upickle.default.macroRW[Report]
}
Should that work? I get
cmd24.sc:2: trait CaseObjectContext is a trait; does not take constructor arguments
implicit val pickler : ReadWriter[LossReport] = upickle.default.macroRW[LossReport]
Also, I can't get tab completion to work... has anyone got it working successfully, any tips?
Cannot find default main class. Specify one with -M or --main-class.
.
sh.almond:scala-kernel_2.13.4
on Maven, so not sure why it should fail?