diff --git a/sagemath.spec b/sagemath.spec index 0a60838..24c0b61 100644 --- a/sagemath.spec +++ b/sagemath.spec @@ -1592,6 +1592,9 @@ cat > kernel.json << EOF {"display_name": "SageMath %{version}", "argv": ["%{_bindir}/sage", "--python", "-m", "sage.repl.ipython_kernel", "-f", "{connection_file}"]} EOF popd +# Allow displaying 3d plots in the jupyter notebook +mkdir -p %{buildroot}%{_datadir}/jupyter/nbextensions/ +ln -sf %{_jsdir}/jsmol %{buildroot}%{_datadir}/jupyter/nbextensions/ # last install command rm -fr $DOT_SAGE