Giter Club home page Giter Club logo

Comments (5)

tschaume avatar tschaume commented on June 8, 2024

@ATNDiaye and @henry-wu (FYI @kristinpersson): MPContribs now provides a basic MPFile viewer which renders the contents of an MPFile similar to the format used on MP's web site (but without any database interaction). The web app allows you to render and improve MPFiles locally on your machine until ready for official submission. Install MPContribs and run the viewer via

pip install -e git+git://github.com/materialsproject/MPContribs.git#egg=mpcontribs
mgc viewer

Please give it a try and let me know if you have any questions or find bugs.

from mpcontribs.

ATNDiaye avatar ATNDiaye commented on June 8, 2024

Thanks @tschaume !
It had some unmet dependencies and I needed a plotly account.
Now it runs - many thanks! Very useful!
Is there an offline switch so the viewer would run without internet access as well?

(PH edit: see separate issue #13 for the "offline switch")

from mpcontribs.

tschaume avatar tschaume commented on June 8, 2024

The cleanest way to install MPContribs is within a dedicated virtual environment. I'd suggest you set it up using virtualenvwrapper (mkvirtualenv) which also adds the correct bin directory to your PATH. After installing MPContribs you can check which mgc to confirm.

Also, find below an animated gif demonstrating the MPFile viewer.
mgc_viewer

from mpcontribs.

henry-wu avatar henry-wu commented on June 8, 2024

I am able to install MPContribs and run mgc viewer. I am also able to load the MPFile you updated (hwu_test_input.txt). Here a screenshot.

Is there a better way to set the organization of the data table? In the file the temperature column is on the leftmost side, but in the expanded viewer table, it's hidden in the middle somehow.

Also, regarding the plot, I am able to go to plot.ly and make changes to the plot layout there. But how should I go about having those changes reflected in the MPFile? Plot title, log axis, etc..

from mpcontribs.

tschaume avatar tschaume commented on June 8, 2024

@henry-wu
I've improved the grid layout for your case where there's no hierarchical data (i.e., meta-data), yet. Also the issue with the preservation of the column order in the table should be fixed now.
As for the plot styling, below is a short screen gif that demonstrates how the changes you implement in Plotly will automatically translate to the MP site. In the MPFileViewer, which serves as a non-persistent testing ground for the official submission, this is not supported (yet). Please subscribe to issue #22 if you'd like to be notified on my progress.
mgc_plotly_update_demo

from mpcontribs.

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.