Comments (5)
@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.
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.
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.
from mpcontribs.
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.
@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.
from mpcontribs.
Related Issues (20)
- Sometimes, the web interface shows no entries even when they exist HOT 4
- `request line too large` on columns load for landing page
- assign DOI to landing page of `mofexplorer` project HOT 5
- client: use `healthcheck` to retrieve API version and encode in apispec filename
- mofexplorer project is not approved yet when using `make_public()` HOT 2
- Missing filters for field types other than `str` HOT 2
- allow single `|` character to be used in column names HOT 1
- `|` is an invalid character in the field descriptions HOT 2
- Unclear instructions on how df labels work HOT 2
- client: increase `maxsize` for lru cache to longer retain specs
- `Unauthorized` not defined (missing import)
- internal server error for contribution details pages
- use pip-tools to manage dependencies
- fix license abbreviations (CC BY 4.0 & CC0 1.0)
- save DOIs for landing pages with project info
- implement full API / client tests
- implement `query/search_projects()` client convenience functions
- add API route for `/contributions/search?formula=<formula>` using Atlas Search
- cannot access materials project HOT 1
- mpcontribs-client: tests depend on mpcontribs.api but this package isn't installed by mpcontribs-client HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpcontribs.