Skip to content

Releases: janpfeifer/gonb

v0.10.6: Improved Docker, added `%capture`

16 Oct 15:56
0fc7fbc
Compare
Choose a tag to compare
  • Feature request #138
    • Added openssh-client, rsync and curl, to allow users to install other dependencies.
    • Added sudo for apt install and apt update.
    • Added support for autostart.sh that if present in the mounted container /notebooks directory, and if root owned
      and set as executable.
  • Updated Dockerfile to latest version to JupyterLab -- now the base docker is served quay.io/jupyter/base-notebook
  • Added %capture [-a] <file> to capture the output of a cell (#142)
  • Fixed nbexec: added --disable-gpu and --disable-software-rasterizer when executing "headless" chrome for tests.

v0.10.5 Added `dom.SendAsDownload`

09 Oct 14:34
Compare
Choose a tag to compare
  • Added dom.SendAsDownload to send data from cells to the client by triggering a browser download. #134

v0.10.4 Fix #131

07 Oct 11:09
Compare
Choose a tag to compare
  • Issue #131: proper handling of tuple variable declarations like var contents, _ = os.ReadFile(...)

v0.10.3 Update to go 1.23.0 and updated dependencies

18 Aug 07:23
Compare
Choose a tag to compare

Minimal release update. To be matched with an updated GoNB + JupyterLab docker to include go1.23.

  • go1.23, and update dependencies.
  • Fixed GitHub's go.yaml actions, test shows green now.

v0.10.2 Added Jupytext support and `ndlv` script for debugging cells.

10 Jul 07:29
Compare
Choose a tag to compare
  • Jupytext integration #120:
    • Many thanks for Marc Wouts for adding support in Jupytext and @HaveF for the help and starting the topic.
    • Handle special commands to be prefixed with //gonb: -- this allows special commands to be parseable Go code, and makes it easier for IDEs.
    • Ignore package tag -- as opposed to raising an error: also to make easy on IDEs that may require a package tag.
    • Added special variation: %exec <function_name> <args...> that creates a main function that calls <function_name>
      and sets the program arguments (flags) to the given values.
  • Added ndlv wrapper script for starting gdlv on cell binary.
  • Notebook testing: changed nbexec to use system's google-chrome if available (with sandbox), or let Rod download
    chromium, but then use with --no-sandbox (since there is no SUID on the binaries).
  • Fixed tracking to simply ignore loops, but not interrupt traversal during tracking.

v0.10.1 Apache ECharts

14 Apr 10:13
Compare
Choose a tag to compare
  • Interrupt and Shutdown:
    • [interrupt_mode] set to message, as opposed to having a SIGINT. Works both in JupyterLab and VSCode.
    • Interrupt all cell executions at shutdown_request.
  • New github.com/janpfeifer/gonb-echarts to add support to Apache ECharts
    using github.com/go-echarts/go-echarts. See examples
    • Added gonb_echarts.Display and gonb_echarts.DisplayContent.
  • Updated documentation on VSCode limitation for Javascript.
  • Fixed bug in dom.LoadScriptOrRequireJSModuleAndRun where plotly source was hardcoded by mistake.

v0.10.0 Plotly, VSCode, Cell Magic

07 Apr 08:53
Compare
Choose a tag to compare

0.10.0, 2024/04/07 Improvements on Plotly, VSCode support, Cell magic, interrupt handling and several minor fixes.

  • Added special cell commands ("magic"):
    • %%writefile to write contents of cell to file. See #103. Thanks @potoo0!
    • %%script, %%bash and %%sh to execute the full cell contents with the given command (none of the extra flags are supported yet though).
  • Added dom.LoadScriptOrRequireJSModuleAndRun and dom.LoadScriptOrRequireJSModuleAndRunTransient that dynamically decides
    if to include script using <script src=...> or use RequireJS.
  • Plotly library uses dom.LoadScriptOrRequireJSModuleAndRun now, allowing result to show up in the HTML export of
    the notebook.
  • Added plotly.AppendFig that allows plotting to a transient area, or anywhere in the page.
  • Several minor fixes, see #106
  • Added handling of SIGHUP and SIGTERM to handle a clean exit: and avoid leaking gopls daemons.
  • Make sure SIGINT triggers an equivalent SIGINT on the child processes (it was not happening in VSCode).
  • Added docs/VSCode.md with notes/info on running GoNB with Visual Studio Code.

v0.9.6 Added Plotly support

18 Feb 17:49
Compare
Choose a tag to compare

Updates:

  • Fixed some typos in klog formatting.
  • Updated dependencies.
  • Updated gopls dependencies: new jsonrpc2 API.
  • Added LoadScriptModuleAndRun.
  • Added Plotly Javascript support, in gonbui.plotly package. Also added example in tutorial.
  • During installation, consider /var/folders also a temporary directory.

v0.9.5

10 Jan 03:52
Compare
Choose a tag to compare
  • Added instrumentation to Jupyter input boxes in nbexec.
  • Added functional tests for input boxes created with %with_inputs, %with_password or gonbui.RequestInput.
  • Added logo to installation #84

v0.9.4 Small fixes and improvements

13 Dec 08:33
Compare
Choose a tag to compare
  • Cache is by-passed if cache key is set to empty ("").
  • New widgets demo, using GoMLX's Flowers Diffusion demo
  • Updated Dockerfile to start from /notebooks directory, and with instructions to mount the
    host current directory in the host/ subdirectory. More in #78
  • Fixed gonbui.RequestInput.