From a574d1feaa9279af55517fbb1e8e4c429064fc01 Mon Sep 17 00:00:00 2001 From: Julia Kent <46687291+jukent@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:39:32 -0600 Subject: [PATCH 1/2] try to set maxoutputlength --- portal/conf.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/portal/conf.py b/portal/conf.py index ce57d8e0..0355346d 100644 --- a/portal/conf.py +++ b/portal/conf.py @@ -140,6 +140,18 @@ r'https://stackoverflow\.com/.*', ] +# Optionally set the max output length directly if supported +# If nbsphinx or myst_nb does not have this, refer to their documentation for correct usage +nbsphinx_output_prompt = 300 # Example value + +# For MyST-NB, you can set notebook related configurations +myst_nb_config = { + 'output_prompt_height': 300, # Example value, adjust as needed +} + +# Ensure no invalid maxOutputLength setting +maxOutputLength = 1024 # Setting a valid example value within the required range + # CUSTOM SCRIPTS ============================================================== # Copy root files into content pages ------------------------------------------ From e3c635f033d2dae6d529081443588f3f85de3fe3 Mon Sep 17 00:00:00 2001 From: Julia Kent <46687291+jukent@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:26:39 -0600 Subject: [PATCH 2/2] comments --- portal/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/portal/conf.py b/portal/conf.py index 0355346d..96d321c0 100644 --- a/portal/conf.py +++ b/portal/conf.py @@ -140,11 +140,10 @@ r'https://stackoverflow\.com/.*', ] -# Optionally set the max output length directly if supported -# If nbsphinx or myst_nb does not have this, refer to their documentation for correct usage +# Set the max output length directly if supported nbsphinx_output_prompt = 300 # Example value -# For MyST-NB, you can set notebook related configurations +# For MyST-NB, set notebook related configurations myst_nb_config = { 'output_prompt_height': 300, # Example value, adjust as needed }