Skip to content

Commit f5b2c9a

Browse files
committed
Disable Jupyter history manager to suppress Almond
Add jupyter_server_config.py to disable the history manager, which prevents history_request messages that cause JSON decoding errors in Almond 0.9.1: ERROR Kernel Ignoring error decoding message java.lang.Exception: Error decoding message: com.github.plokhotnyuk.jsoniter_scala.core.JsonReaderException The error is cosmetic (doesn't break functionality) but annoying in logs. Disabling history requests eliminates the error completely while maintaining all Chisel functionality and visualization capabilities.
1 parent 411be21 commit f5b2c9a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ENV JUPITER_DATA_DIR=/jupyter/data
3131

3232
RUN mkdir -p $JUPYTER_CONFIG_DIR/custom
3333
RUN cp source/custom.js $JUPYTER_CONFIG_DIR/custom/
34+
RUN cp source/jupyter_server_config.py $JUPYTER_CONFIG_DIR/
3435

3536
# Second stage - download Scala requirements and the Scala kernel
3637
FROM base as intermediate-builder

source/jupyter_server_config.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Jupyter Server Configuration
2+
# This configuration disables history requests to prevent Almond kernel
3+
# JSON decoding errors that are harmless but annoying
4+
5+
c = get_config() #noqa
6+
7+
# Disable history access to prevent history_request messages
8+
# that cause JSON decoding errors in Almond 0.9.1
9+
c.HistoryManager.enabled = False
10+
c.HistoryManager.hist_file = ':memory:'
11+
12+
# Optional: Reduce logging noise
13+
c.Application.log_level = 'WARN'

0 commit comments

Comments
 (0)