๐ย Hi, I am Hendrik and I am building tools in the python visualization ecosystems.
kolibril13 / ipymafs Goto Github PK
View Code? Open in Web Editor NEWInteractive math react components in jupyter
Interactive math react components in jupyter
๐ย Hi, I am Hendrik and I am building tools in the python visualization ecosystems.
When going to the https://code.esm.sh/ playground, static mafs components load just fine:
Copy pasting this css content https://unpkg.com/[email protected]/core.css
and this react code (based on https://mafs.dev/guides/display/lines)
import React from "https://esm.sh/react"
import { Mafs, Line, Coordinates, useMovablePoint } from "https://esm.sh/mafs"
export default function SimplePoint() {
const point1 = useMovablePoint([-2, -1])
const point2 = useMovablePoint([2, 1])
return (
<Mafs viewBox={{ x: [-2, 2], y: [-1, 1] }}>
<Coordinates.Cartesian />
<Line.Segment
point1={point1.point}
point2={point2.point}
/>
</Mafs>
)
}
works fine!
However, when I add {point1.element}
to the react component like this:
<Mafs viewBox={{ x: [-2, 2], y: [-1, 1] }}>
<Coordinates.Cartesian />
<Line.Segment
point1={point1.point}
point2={point2.point}
/>
{point1.element}
</Mafs>
I get the error:
[Error] TypeError: Object.entries requires that input parameter not be null or undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.