Releases: janpfeifer/gonb
Releases · janpfeifer/gonb
v0.10.6: Improved Docker, added `%capture`
- 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`
- Added
dom.SendAsDownload
to send data from cells to the client by triggering a browser download. #134
v0.10.4 Fix #131
- 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
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.
- 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 apackage
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
- Interrupt and Shutdown:
- [
interrupt_mode
] set tomessage
, as opposed to having aSIGINT
. 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
andgonb_echarts.DisplayContent
.
- Added
- 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
0.10.0, 2024/04/07 Improvements on Plotly, VSCode support, Cell magic, interrupt handling and several minor fixes.
- Added special cell commands ("magic"):
- Added
dom.LoadScriptOrRequireJSModuleAndRun
anddom.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
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
v0.9.4 Small fixes and improvements
- 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 thehost/
subdirectory. More in #78 - Fixed
gonbui.RequestInput
.