Skip to content

Instantly share code, notes, and snippets.

@jzherran
Created April 6, 2022 18:23
Show Gist options
  • Save jzherran/5b3755bb279277c07bac7c142c7cae97 to your computer and use it in GitHub Desktop.
Save jzherran/5b3755bb279277c07bac7c142c7cae97 to your computer and use it in GitHub Desktop.
List of changes in magilla/project.clj
---------------------------------------
- Create version 0.1.24 from lein-jupyter with version 0.3.3-alpha2 from clojupyter (no nubank fork)
- Upgrade version plugin from 0.1.23 => 0.1.24
- Use clojupyter version 0.3.3-alpha2 from clojupyter repo
---------------------------------------
❯ bin/magilla-start co staging
[INFO] Updating clojupyter kernel...
kernel successfully installed at /Users/jhonatan.zambrano/Library/Jupyter/kernels
[INFO] Starting Magilla in 'co' with environment 'staging'...
[I 2022-04-06 13:19:01.769 LabApp] JupyterLab extension loaded from /Users/jhonatan.zambrano/.pyenv/versions/3.10.3/lib/python3.10/site-packages/jupyterlab
[I 2022-04-06 13:19:01.769 LabApp] JupyterLab application directory is /Users/jhonatan.zambrano/.pyenv/versions/3.10.3/share/jupyter/lab
[I 13:19:01.774 NotebookApp] Serving notebooks from local directory: /Users/jhonatan.zambrano/dev/nu/magilla
[I 13:19:01.775 NotebookApp] Jupyter Notebook 6.4.10 is running at:
[I 13:19:01.775 NotebookApp] http://localhost:8888/?token=9ae82045da879d30389805f3458224fbc82ff15bcbaea168
[I 13:19:01.775 NotebookApp] or http://127.0.0.1:8888/?token=9ae82045da879d30389805f3458224fbc82ff15bcbaea168
[I 13:19:01.775 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:19:01.778 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/jhonatan.zambrano/Library/Jupyter/runtime/nbserver-92017-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=9ae82045da879d30389805f3458224fbc82ff15bcbaea168
or http://127.0.0.1:8888/?token=9ae82045da879d30389805f3458224fbc82ff15bcbaea168
[I 13:19:06.062 NotebookApp] Kernel started: 6eb90dbc-4d93-4a78-8136-1970abaa72d4, name: lein-clojure
[I 18:19:15.339 Clojupyter] c8r.kernel.init -- Clojupyter version 0.3.3-SNAPSHOT.
[I 18:19:15.345 Clojupyter] c8r.kernel.init -- Configuration read from /Users/jhonatan.zambrano/Library/Preferences/clojupyter.edn.
[I 18:19:15.346 Clojupyter] c8r.kernel.init -- Configuration: {:log-level :debug, :log-traffic? false, :print-stacktraces? true}
[D 18:19:16.023 Clojupyter] c8r.kernel.core -- -main starting
>>>>>>>
{:arglist
("/Users/jhonatan.zambrano/Library/Jupyter/runtime/kernel-6eb90dbc-4d93-4a78-8136-1970abaa72d4.json")}
<<<<<<<<
[I 18:19:16.044 Clojupyter] c8r.kernel.core -- Clojupyter config
>>>>>>>
{:transport "tcp",
:hb_port 55925,
:kernel_name "lein-clojure",
:ip "127.0.0.1",
:control_port 55926,
:key "5f4410c2-c9f2b1063672b588eaad6d02",
:stdin_port 55924,
:signature_scheme "hmac-sha256",
:shell_port 55922,
:iopub_port 55923}
<<<<<<<<
[D 18:19:16.061 Clojupyter] c8r.zmq -- socket-fwd(:control_port) -- Starting.
[D 18:19:16.062 Clojupyter] c8r.zmq -- socket-fwd(:shell_port) -- Starting.
[D 18:19:16.062 Clojupyter] c8r.zmq -- socket-fwd(:iopub_port) -- Starting.
[D 18:19:16.062 Clojupyter] c8r.zmq -- socket-fwd(:stdin_port) -- Starting.
[D 18:19:16.064 Clojupyter] c8r.kernel.core -- start-zmq-socket-fwd returning
[D 18:19:16.064 Clojupyter] c8r.zmq.heartbeat-process -- heartbeat: Starting.
[D 18:19:16.078 Clojupyter] c8r.zmq -- channel-forward(:shell_port, inproc://fwd-:shell_port-g__13801) -- Starting.
[D 18:19:16.078 Clojupyter] c8r.zmq -- channel-forward(:stdin_port, inproc://fwd-:stdin_port-g__13803) -- Starting.
[D 18:19:16.078 Clojupyter] c8r.zmq -- channel-forward(:iopub_port, inproc://fwd-:iopub_port-g__13802) -- Starting.
[D 18:19:16.078 Clojupyter] c8r.zmq -- channel-forward(:control_port, inproc://fwd-:control_port-g__13800) -- Starting.
[I 18:19:16.179 Clojupyter] c8r.kernel.cljsrv -- Started NREPL server: tcp://127.0.0.1:56132.
[D 18:19:16.180 Clojupyter] c8r.kernel.handle-event-process -- handle-event-process starting: :control_port
[D 18:19:16.180 Clojupyter] c8r.kernel.handle-event-process -- handle-event-process starting: :shell_port
[D 18:19:16.238 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.253 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in begin, :execution-id 1, :line 314}
[D 18:19:16.253 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in process-all, :handling :enter, :execution-id 1, :line 154}
[D 18:19:16.255 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :enter, :execution-id 1, :fn #function[clojure.core/partial/fn--5859], :line 50}
[D 18:19:16.256 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.ops/enter-action-interceptor, :stage :enter, :execution-id 1, :fn #function[clojupyter.kernel.handle-event.ops/invoke-action/fn--25572], :line 50}
[D 18:19:16.257 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in leave-all, :execution-id 1, :line 241}
[D 18:19:16.257 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :leave, :execution-id 1, :fn #function[clojure.core/partial/fn--5859], :line 50}
[D 18:19:16.259 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in end, :execution-id 1, :context-keys (:req-message :io.pedestal.interceptor.chain/stack :req-port :enter-action :term :leave-action :cljsrv :io.pedestal.interceptor.chain/execution-id :jup), :line 321}
[I 13:19:16.263 NotebookApp] Adapting from protocol version 5.2 (kernel 6eb90dbc-4d93-4a78-8136-1970abaa72d4) to 5.3 (client).
[D 18:19:16.269 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.270 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.271 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in begin, :execution-id 2, :line 314}
[D 18:19:16.271 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in process-all, :handling :enter, :execution-id 2, :line 154}
[D 18:19:16.271 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :enter, :execution-id 2, :fn #function[clojure.core/partial/fn--5859], :line 50}
[D 18:19:16.271 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.ops/enter-action-interceptor, :stage :enter, :execution-id 2, :fn #function[clojupyter.kernel.handle-event.ops/invoke-action/fn--25572], :line 50}
[D 18:19:16.272 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in leave-all, :execution-id 2, :line 241}
[D 18:19:16.272 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :leave, :execution-id 2, :fn #function[clojure.core/partial/fn--5859], :line 50}
[D 18:19:16.272 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in end, :execution-id 2, :context-keys (:req-message :io.pedestal.interceptor.chain/stack :req-port :enter-action :term :leave-action :cljsrv :io.pedestal.interceptor.chain/execution-id :jup), :line 321}
[D 18:19:16.284 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.285 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.285 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in begin, :execution-id 3, :line 314}
[D 18:19:16.285 Clojupyter] c8r.util -- Checking message with key 5f4410c2-c9f2b1063672b588eaad6d02
[D 18:19:16.285 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in process-all, :handling :enter, :execution-id 3, :line 154}
[D 18:19:16.286 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :enter, :execution-id 3, :fn #function[clojure.core/partial/fn--5859], :line 50}
[E 18:19:16.270 Clojupyter] c8r.kernel.handle-event-process --
java.lang.Thread.run Thread.java: 829
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 628
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1128
...
clojure.core.async/thread-call/fn async.clj: 484
clojupyter.kernel.handle-event-process/start-channel-thread/fn handle_event_process.clj: 61
clojupyter.kernel.handle-event-process/run-dispatch-loop handle_event_process.clj: 52
clojupyter.kernel.handle-event-process/handle-event-or-channel-error handle_event_process.clj: 31
clojure.lang.ExceptionInfo: Invalid msgtype for port :control_port: kernel_info_request
channel-port: :control_port
msgtype: "kernel_info_request"
req-message: {:header
{:msg_id "bcc68708df7248b6aba599300510d9d2_92017_2",
:msg_type "kernel_info_request",
:username "jhonatan.zambrano",
:session "bcc68708df7248b6aba599300510d9d2",
:date "2022-04-06T18:19:16.266019Z",
:version "5.3"},
:parent-header {},
:metadata {},
:content {},
:preframes
#Preframes[[:hash/0x27205681] :hash/0x3ecbec84 :hash/0x60c53657],
:buffers #Buffers[]}
[D 18:19:16.286 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.ops/enter-action-interceptor, :stage :enter, :execution-id 3, :fn #function[clojupyter.kernel.handle-event.ops/invoke-action/fn--25572], :line 50}
[D 18:19:16.286 Clojupyter] c8r.kernel.handle-event-process -- handle-event-process terminating: :control_port
[D 18:19:16.286 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in leave-all, :execution-id 3, :line 241}
[D 18:19:16.287 Clojupyter] io.pedestal.interceptor.chain:111 -- {:interceptor :clojupyter.kernel.handle-event.kernel-info/ic*kernel-info, :stage :leave, :execution-id 3, :fn #function[clojure.core/partial/fn--5859], :line 50}
[D 18:19:16.287 Clojupyter] c8r.kernel.handle-event-process -- Initiating shutdown: :handle-event-process
[D 18:19:16.287 Clojupyter] io.pedestal.interceptor.chain:111 -- {:in end, :execution-id 3, :context-keys (:req-message :io.pedestal.interceptor.chain/stack :req-port :enter-action :term :leave-action :cljsrv :io.pedestal.interceptor.chain/execution-id :jup), :line 321}
[D 18:19:16.291 Clojupyter] c8r.kernel.handle-event-process -- handle-event-process terminating: :shell_port
[D 18:19:16.292 Clojupyter] c8r.kernel.handle-event-process -- Initiating shutdown: :handle-event-process
Exception in thread "async-thread-macro-10" [D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:shell_port, inproc://fwd-:shell_port-g__13801) -- Shutdown message received.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:stdin_port, inproc://fwd-:stdin_port-g__13803) -- Shutdown message received.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:control_port, inproc://fwd-:control_port-g__13800) -- Shutdown message received.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:iopub_port, inproc://fwd-:iopub_port-g__13802) -- Shutdown message received.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:shell_port, inproc://fwd-:shell_port-g__13801) -- Terminating.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:control_port, inproc://fwd-:control_port-g__13800) -- Terminating.
clojure.lang.ExceptionInfo: Invalid msgtype for port :control_port: kernel_info_request {:req-message {:header {:msg_id "bcc68708df7248b6aba599300510d9d2_92017_2", :msg_type "kernel_info_request", :username "jhonatan.zambrano", :session "bcc68708df7248b6aba599300510d9d2", :date "2022-04-06T18:19:16.266019Z", :version "5.3"}, :parent-header {}, :metadata {}, :content {}, :preframes #Preframes[[:hash/0x27205681] :hash/0x3ecbec84 :hash/0x60c53657], :buffers #Buffers[]}, :msgtype "kernel_info_request", :channel-port :control_port}
at clojupyter.kernel.handle_event_process$handle_event_or_channel_error.invokeStatic(handle_event_process.clj:31)
at clojupyter.kernel.handle_event_process$handle_event_or_channel_error.invoke(handle_event_process.clj:16)[D 18:19:16.300 Clojupyter] c8r.kernel.core -- start-clojupyter: wait-signal received
at clojupyter.kernel.handle_event_process$run_dispatch_loop.invokeStatic(handle_event_process.clj:52)
at clojupyter.kernel.handle_event_process$run_dispatch_loop.invoke(handle_event_process.clj:40)
at clojupyter.kernel.handle_event_process$start_channel_thread$fn__27772.invoke(handle_event_process.clj:61)
at clojure.core.async$thread_call$fn__9355.invoke(async.clj:484)
at clojure.lang.AFn.run(AFn.java:22)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:iopub_port, inproc://fwd-:iopub_port-g__13802) -- Terminating.
[D 18:19:16.300 Clojupyter] c8r.zmq -- channel-forward(:stdin_port, inproc://fwd-:stdin_port-g__13803) -- Terminating.
[D 18:19:16.301 Clojupyter] c8r.zmq -- Initiating shutdown: :channel-forward-start
[D 18:19:16.301 Clojupyter] c8r.zmq -- Initiating shutdown: :channel-forward-start
[D 18:19:16.301 Clojupyter] c8r.zmq -- Initiating shutdown: :channel-forward-start
[D 18:19:16.301 Clojupyter] c8r.zmq -- Initiating shutdown: :channel-forward-start
[D 18:19:16.302 Clojupyter] c8r.kernel.core -- start-clojupyter returning
Exception in thread "async-thread-macro-11" java.lang.AssertionError: Assert failed: (map? state)
at clojupyter.kernel.handle_event.comm_msg$fn__25637.invokeStatic(comm_msg.clj:140)
at clojupyter.kernel.handle_event.comm_msg$fn__25637.invoke(comm_msg.clj:131)
at clojure.lang.MultiFn.invoke(MultiFn.java:239)
at clojure.lang.AFn.applyToHelper(AFn.java:160)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:667)
at clojure.core$apply.invoke(core.clj:662)
at clojupyter.kernel.handle_event.comm_msg$calc.invokeStatic(comm_msg.clj:194)
at clojupyter.kernel.handle_event.comm_msg$calc.doInvoke(comm_msg.clj:190)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.spec.test.alpha$spec_checking_fn$fn__3026.doInvoke(alpha.clj:142)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojupyter.kernel.handle_event.comm_msg$handle_message.invokeStatic(comm_msg.clj:217)
at clojupyter.kernel.handle_event.comm_msg$handle_message.invoke(comm_msg.clj:212)
at clojupyter.kernel.handle_event$handle_comm.invokeStatic(handle_event.clj:21)
at clojupyter.kernel.handle_event$handle_comm.invoke(handle_event.clj:18)
at clojupyter.kernel.handle_event$fn__27612.invokeStatic(handle_event.clj:53)
at clojupyter.kernel.handle_event$fn__27612.invoke(handle_event.clj:53)
at clojure.lang.MultiFn.invoke(MultiFn.java:234)
at clojupyter.kernel.handle_event$calculate_response.invokeStatic(handle_event.clj:81)
at clojupyter.kernel.handle_event$calculate_response.invoke(handle_event.clj:79)
at clojupyter.kernel.handle_event$handle_event_BANG_.invokeStatic(handle_event.clj:86)
at clojupyter.kernel.handle_event$handle_event_BANG_.invoke(handle_event.clj:83)
at clojupyter.kernel.handle_event_process$handle_event_or_channel_error.invokeStatic(handle_event_process.clj:35)
at clojupyter.kernel.handle_event_process$handle_event_or_channel_error.invoke(handle_event_process.clj:16)
at clojupyter.kernel.handle_event_process$run_dispatch_loop.invokeStatic(handle_event_process.clj:52)
at clojupyter.kernel.handle_event_process$run_dispatch_loop.invoke(handle_event_process.clj:40)
at clojupyter.kernel.handle_event_process$start_channel_thread$fn__27772.invoke(handle_event_process.clj:61)
at clojure.core.async$thread_call$fn__9355.invoke(async.clj:484)
at clojure.lang.AFn.run(AFn.java:22)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[I 18:19:16.306 Clojupyter] c8r.kernel.core -- Clojupyter terminating (sysexit)
[D 18:19:16.339 Clojupyter] c8r.zmq -- socket-fwd(:stdin_port) -- Terminating.
[D 18:19:16.340 Clojupyter] c8r.zmq -- Initiating shutdown: :zmq-start
[I 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:iopub_port) -- Polling ZeroMQ sockets returned negative value - terminating.
[I 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:shell_port) -- Polling ZeroMQ sockets returned negative value - terminating.
[I 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:control_port) -- Polling ZeroMQ sockets returned negative value - terminating.
[E 18:19:16.413 Clojupyter] c8r.zmq.heartbeat-process -- heartbeat: Polling ZeroMQ socket returned negative value - terminating.
[D 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:control_port) -- Terminating.
[D 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:shell_port) -- Terminating.
[D 18:19:16.413 Clojupyter] c8r.zmq -- socket-fwd(:iopub_port) -- Terminating.
[D 18:19:16.413 Clojupyter] c8r.zmq.heartbeat-process -- heartbeat: Terminating.
[D 18:19:16.414 Clojupyter] c8r.zmq -- Initiating shutdown: :zmq-start
[D 18:19:16.414 Clojupyter] c8r.zmq -- Initiating shutdown: :zmq-start
[D 18:19:16.414 Clojupyter] c8r.zmq -- Initiating shutdown: :zmq-start
[D 18:19:16.414 Clojupyter] c8r.zmq.heartbeat-process -- Initiating shutdown: :hb
[I 18:19:16.416 Clojupyter] c8r.kernel.init -- Shutdown-hook terminating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment