import React from "react"; import { JupyterEditor } from "#/components/features/jupyter/jupyter"; function Jupyter() { const parentRef = React.useRef(null); const [parentWidth, setParentWidth] = React.useState(0); // This is a hack to prevent the editor from overflowing // Should be removed after revising the parent and containers React.useEffect(() => { if (parentRef.current) { setParentWidth(parentRef.current.offsetWidth); } }, []); return (
); } export default Jupyter;