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.

developer workflow

See original GitHub issue

I want to make a change to xarray.plot.plot.line and use that change, what is the best way of going about this? I was thinking that I could

(1) Fork xarrary on Github (2) Make a local clone of the fork (3) Edit the code for the function line in ‘plot/plot.py’

Then? I already use xarray that is installed with conda: conda install xarray .

Sorry need to ask because never done this before.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fmaussioncommented, Nov 2, 2016

Hi, if you want to change something in xarray and use it instead of the original one you should uninstall it, and then install it in dev mode. From the xarray root directory:

pip install -e .

However, in that case this is probably not the best thing to do. Since the logic for xarray’s line plot is extremely simple, in that case you’d better make you’re own function out of it and call it instead. I.e. my_plot_func(dataarray) instead of datarray.plot().

Finally, you may want to consider using an accessor for this purpose. You will then be able to write something like:

datarray.qAp.plot()
0reactions
fmaussioncommented, Dec 2, 2016

Right, I forgot about https://github.com/pydata/xarray/pull/637 . I’ll see what I can do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developer workflow basics
Developer workflow basics · Set up your workspace. This is the phase you probably already finished: Install Android Studio and create a project....
Read more >
5 DevOps tips to speed up your developer workflow
From learning YAML to scripting with Bash, here are a few simple tips for developers who want to speed up their workflows.
Read more >
The developer's workflow in practice — how we built our MVP ...
As users give feedback on the developed functionalities, the User Stories evolve and adapt to match the actual use of the app. 4....
Read more >
Tips for a better developer workflow in Figma
In this article I'll highlight a couple of these changes and share a few tips that many of our users have found helpful...
Read more >
Senior Developer Workflow For Stress-Free Coding - YouTube
Stop being frustrated with your code and take just a few minutes to learn an iterative workflow. Your code will always be working....
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