Skip to content

Commit

Permalink
fix plotly import
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Dec 28, 2024
1 parent 082c7ff commit 9543a98
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ansi from '@cocalc/ansi-to-react'
import clsx from 'clsx'
import Plot from 'react-plotly.js'
import dynamic from 'next/dynamic'
import {
Output,
PythonErrorOutput,
Expand All @@ -16,6 +16,8 @@ import { downloadFile } from '@/utils/file'
import debounce from 'lodash.debounce'
import { PythonBlock } from '@briefer/editor'

const Plot = dynamic(() => import('react-plotly.js'), { ssr: false })

interface Props {
className?: string
outputs: Output[]
Expand Down

0 comments on commit 9543a98

Please sign in to comment.