question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add new plots through individual-plots.json

See original GitHub issue

The 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:

https://github.com/dask/dask-labextension/blob/b68342bcfb43f905d7b86588fb3083f917519b5a/src/dashboard.tsx#L417-L426

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:closed
  • Created 4 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
trxcllntcommented, Aug 14, 2019

@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 🌈

1reaction
mrocklincommented, Aug 17, 2019

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:

Apologies for not updating. I have been sick the past couple of days and needed quite a lot of rest. I have not given much time to the dask extension. I will continue to investigate now that I’ve gotten some energy back. 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dask/dask-labextension/issues/75?email_source=notifications&email_token=AACKZTCVKGKDYL6YQUWN4PLQE6OTTA5CNFSM4IJFVD2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QFBHY#issuecomment-522211487, or mute the thread https://github.com/notifications/unsubscribe-auth/AACKZTHPS6WYHQJWDMTHQ33QE6OTTANCNFSM4IJFVD2A .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found