Sage: Open Source Mathematics Software: Jupyter extension for 3D graphics with threejs
Project description
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.jsjust 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 buildThe minified file
three.min.jswill be located in thebuilddirectory. -
Copy the minified file to the
builddirectory 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
versionfile.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyter_threejs_sage-130.tar.gz.
File metadata
- Download URL: jupyter_threejs_sage-130.tar.gz
- Upload date:
- Size: 490.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e12c2d9933f07a39afd7af9f47fb948f08ef37d225efeff41e5f0409ca249ddc
|
|
| MD5 |
eb854bb6f4cc05bd009792e43719d599
|
|
| BLAKE2b-256 |
3c757e3fad0d99ef5a18a8b7ade919f7e022b07490a26ba215f53c0341c2c3fe
|
File details
Details for the file jupyter_threejs_sage-130-py3-none-any.whl.
File metadata
- Download URL: jupyter_threejs_sage-130-py3-none-any.whl
- Upload date:
- Size: 979.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcc618023a37514598537ae93ee82bdcd8710cc4df8fa0746f51dbc513356e52
|
|
| MD5 |
d682513634b6003b51303dde888d86f8
|
|
| BLAKE2b-256 |
b949770da740adc8a2e430b09971de8ebd48e049643679b6c902431a4d329bbc
|