Giter Club home page Giter Club logo

Comments (6)

Vela-zz avatar Vela-zz commented on June 27, 2024 1

thanks for your help! I may try the #38 to get familiar with how langcheck render a graph by using plotly dash.

from langcheck.

Vela-zz avatar Vela-zz commented on June 27, 2024

Hello, I am interested in this project. Is there anyone handle this issue right now? if not I want to handle it.

from langcheck.

kennysong avatar kennysong commented on June 27, 2024

Hi @Vela-zz! Feel free to take on this issue. I think it's a bit non-trivial though. Another option to explore is if we can run multiple Plotly servers in one notebook kernel so that there can be multiple interactive charts running at the same time.

from langcheck.

kennysong avatar kennysong commented on June 27, 2024

FYI this might be a slightly easier issue to take on: #38

from langcheck.

Vela-zz avatar Vela-zz commented on June 27, 2024

Is using plotl.js plot the graph and embed them by "display, HTML, Javascript" module from IPython.core.display be an alternative solution for this?
I used BertViz before, they support multi-interacitve plot in one notebook, they plot their graph like this https://github.com/jessevig/bertviz/blob/master/bertviz/model_view.js
https://github.com/jessevig/bertviz/blob/master/bertviz/model_view.py

plot graph using chart.js or d3.js works most of time, but plotly.js is a little bit of weired.

from langcheck.

kennysong avatar kennysong commented on June 27, 2024

Thanks for the reference to BertViz! I looked at their head_view implementation since it includes a dropdown:

head-view

https://github.com/jessevig/bertviz/blob/b42b61ec58f6fc72a55e987b24e55d141e80c4bb/bertviz/head_view.js#L70C4-L70C4

IIUC, the frontend stores all of the chart data in const config on load, and then modifies the chart client-side in JS when the user changes the dropdown.

Plotly is different and runs a Python server where new data is fetched from a Python endpoint every time the user types in the search boxes.

There's pros and cons to each approach. I'm not opposed to switching to a more client-side chart framework, but it would be a pretty major refactoring, so would prefer to see if there's an easier way we can extend Plotly Dash first.

from langcheck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.