From 2db5f8d9713631d27a12bf14399006f23e0979bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 11 Apr 2022 17:49:21 -0300 Subject: [PATCH] threejs-sage: make it available as a jupyter nbextension Adds a symlink in /usr/share/jupyter/nbextensions, so that the js is available in a jupyter notebook. Otherwise, using 3d plots in the jupyter notebook will hit jsdelivr.net. --- srcpkgs/threejs-sage/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/threejs-sage/template b/srcpkgs/threejs-sage/template index cb5c87a19c12..9cdb0fb3848d 100644 --- a/srcpkgs/threejs-sage/template +++ b/srcpkgs/threejs-sage/template @@ -1,7 +1,7 @@ # Template file for 'threejs-sage' pkgname=threejs-sage version=r122 -revision=1 +revision=2 short_desc="Custom build of three.js for sagemath" maintainer="Gonzalo TornarĂ­a " license="MIT" @@ -13,4 +13,8 @@ do_install() { vlicense LICENSE vinstall version 644 usr/share/sagemath/threejs-sage vinstall build/three.min.js 644 usr/share/sagemath/threejs-sage/$version + + # make threejs available as a jupyter notebook extension + vmkdir usr/share/jupyter/nbextensions + ln -s /usr/share/sagemath/threejs-sage ${DESTDIR}/usr/share/jupyter/nbextensions }