import React ,{ useState,useEffect,useRef }from 'react';
import {getJupyterUrl} from '@/services/developmentEnvironment/index.js'
const developmentEnvironment = React.FC = () => {
    const [iframeUrl,setIframeUrl]=useState('')
    useEffect(()=>{
        getJupyterUrl().then(ret=>{
            console.log(ret);
            setIframeUrl(ret.msg)
        })
    },[])
    return (
        <iframe style={{width:'100%',height:'81vh'}} src={iframeUrl} frameborder="0"></iframe>
   )};
export default developmentEnvironment;