Skip to main content

Custom build of Three.js for SageMath

This package provides a single minified Javascript file three.min.js, which combines standard Three.js with a number of scripts from examples/jsm/.

The file is made available both as package data of a Python package jupyter_threejs_sage (for local access by SageMath) and as a Jupyter notebook extension (to be installed in the Jupyter notebook's Python environment).

Development

The steps to create this build from a stable tagged version of Three.js are

  • Perform a shallow clone of the desired version with

git clone --depth=1 --branch r<n> --single-branch https://github.com/mrdoob/three.js.git

  • Add the following lines to src/Three.js just after all other exports
export { OrbitControls } from '../examples/jsm/controls/OrbitControls.js';
export { Line2 } from '../examples/jsm/lines/Line2.js';
export { LineGeometry } from '../examples/jsm/lines/LineGeometry.js';
export { LineMaterial } from '../examples/jsm/lines/LineMaterial.js';
export { LineSegments2 } from '../examples/jsm/lines/LineSegments2.js';
export { LineSegmentsGeometry } from '../examples/jsm/lines/LineSegmentsGeometry.js';
  • Move into the library directory with cd three.js

  • Configure the library with npm install

  • Build the library with npm run build

    The minified file three.min.js will be located in the build directory.

  • Copy the minified file to the build directory here.

  • Create a new directory for the new version in jupyter_threejs_sage/static/ and copy the minified file there. (Do not remove old versions that needed by any released versions of Sage.)

  • The final step before releasing is to update the version file.

As noted in this issue, Three.js releases can be modified for up to a week after the initial release. This build process should wait for this period of time to ensure future consistency of building.

Release files for jupyter-threejs-sage 130

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-threejs-sage 130
File Size Uploaded
jupyter_threejs_sage-130.tar.gz 490.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-threejs-sage 130
File Interpreter ABI Platform
jupyter_threejs_sage-130-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / jupyter_threejs_sage-130.tar.gz

Download URL jupyter_threejs_sage-130.tar.gz
Size 490.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e12c2d9933f07a39afd7af9f47fb948f08ef37d225efeff41e5f0409ca249ddc
BLAKE2b-256 checksum
How to use checksums
3c757e3fad0d99ef5a18a8b7ade919f7e022b07490a26ba215f53c0341c2c3fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / jupyter_threejs_sage-130-py3-none-any.whl

Download URL jupyter_threejs_sage-130-py3-none-any.whl
Size 979.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcc618023a37514598537ae93ee82bdcd8710cc4df8fa0746f51dbc513356e52
BLAKE2b-256 checksum
How to use checksums
b949770da740adc8a2e430b09971de8ebd48e049643679b6c902431a4d329bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

130 This release

2 release files

123

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page