Add new plots through individual-plots.json
See original GitHub issueThe orange buttons in the sidebar are currently hardcoded. It would be great to have them be defined when we talk to the scheduler. This would allow us to add new plots in Dask without having to update this package, and to have plots that are only defined in some situations (such as if a GPU is present)
Currently we query /individual-plots.json
to see if the dashboard is up and running.
// If this is a url that we are proxying under the notebook server,
// it is easier to check for a valid dashboard.
if (url.indexOf(settings.baseUrl) === 0) {
return ServerConnection.makeRequest(
URLExt.join(url, 'individual-plots.json'),
{},
settings
).then(response => {
if (response.status === 200) {
return true;
} else {
return false;
}
});
}
I think that originally the plan was to check this to see what plots were available. Is this still possible? I’m adding a new plot here (https://github.com/dask/distributed/pull/2922) and suspect adding some more that might only be present sometimes.
Currently we hard-code these plots here:
But we might get them from the individual-plots route
$ curl localhost:8787/individual-plots.json
{
"Individual Task Stream": "/individual-task-stream",
"Individual Progress": "/individual-progress",
"Individual Graph": "/individual-graph",
"Individual Profile": "/individual-profile",
"Individual Profile Server": "/individual-profile-server",
"Individual Nbytes": "/individual-nbytes",
"Individual Cpu": "/individual-cpu",
"Individual Nprocessing": "/individual-nprocessing",
"Individual Workers": "/individual-workers"
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
How to plot graphs using .json files in Python
1. import matplotlib.pyplot as plt ; 2. import json ; 3. ; 4. dictionary = json.load(open('file.json', 'r')) ; 5. xAxis = [key...
Read more >Easiest way to plot data from JSON with matplotlib?
1. Brilliant, I'm just getting acquainted with pandas and dataframes. · It depends of structure of json . If structure is simple, read_json...
Read more >Python Matplotlib: How to plot data from JSON
python-matplotlibHow to plot data from JSON ; dict.keys(). returns JSON data keys as a list to use for X values. dict.values(). returns JSON...
Read more >sgreben/jp: dead simple terminal plots from JSON data. ...
Dead simple terminal plots from JSON (or CSV) data. Bar charts, line charts, scatter plots, histograms and heatmaps are supported.
Read more >The 7 most popular ways to plot data in Python
This guide will help you decide. It will show you how to use each of the four most popular Python plotting libraries—Matplotlib, Seaborn,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ian-r-rose unrelated but in the spirit of node <-> python collaboration: outside of container environments, nvm is the node community’s recommended way to install, update, and switch between different versions of node. No root access required and a single-command install, it’s sorta like a node-specific version of
update-alternatives
🌈No rush. Thanks for looking into it. I hope that you feel better.
On Sat, Aug 17, 2019 at 2:59 AM Christopher Harris notifications@github.com wrote: