« first day (2547 days earlier)      last day (698 days later) » 

8:24 AM
For the snakes around: can I update a conda package to some arbitrary commit in a repo? Or do I need them to release an numebred update conda package? (e.g. libxx v2.1.1)
well, arbitrary commit: I want master.
 
 
1 hour later…
9:43 AM
@AnderBiguri sorry I was in a meeting
as far as I know by default you can only get the versions that are published on one of the conda channels
and these are not necessarily the same that are published with a specific tag (usually they are though)
BUT
you can use pip within a conda environment
I really like using conda-env
you can make yaml files to define the whole environment, including whatever you wanna do with pip
# conda env export --from-history
# conda env create -f <file.yaml>
name: my_pretty_name
channels:
  - conda.anaconda.org/conda-forge
  - defaults
dependencies:
  - python=3.10
  - numpy
  - nvidia::cudatoolkit=10.1
  - pip:
          - blobfile
          - "--editable=git+url_to_your_commit"
something like this could maybe work
(I just know with pip install --editable you can install stuff directly from github)
In this example you'd make a new environment with conda-forge as top priority channel and then the default channels. It will have python 3.10, it will install numpy from conda-forge, it will install cudatoolkit=10.1 from the nvidia channel, it will install pip, and use pip to install blobfile and your github stuff
you can make a blueprint yaml file from your current conda environment by using conda env export --from-history if you just want to add that line
Sense it makes I hope.
 
10:24 AM
@AnderBiguri I don't use conda but pip can do it so conda should too stackoverflow.com/questions/13685920/…
 
Thanks @flawr and @AndrasDeak--СлаваУкраїні!
 
@flawr that might be an XY problem. What --editable (-e) primarily does is it doesn't install the package into site-packages of the relevant env, so if you have a local repo and make changes to it they show up live in the env (this doesn't apply to compiled extensions). I'm not sure it has anything to do with "directly from github".
But it could; I don't ever use it with this combination. But considering that it can't magically know that the remote was updated (git doesn't automatically know that either), I doubt there's any additional mechanics there.
 
I think the default approach to conda is "you can't", but I see how all that could work. To be fair I am being very impatient and the updated conda package will come soon, so I may just wait
 
@AndrasDeak--СлаваУкраїні Oh you can actually directly use `pip install <github>"!!!
 
@AndrasDeak--СлаваУкраїні Damn the number of upvote on these questions
 
10:27 AM
the editable you can throw away
 
@BillBokeey no, the good ones are the " I JUST FUCKED UP PLEASE HELP WITH GIT" stackoverflow.com/questions/927358/…
 
@AnderBiguri you can also combine pip install with a conda env, although it's not recommended by the conda people anaconda.com/blog/using-pip-in-a-conda-environment
they say things can break so only do this in a dedicated conda env you're not sad to see blow up
 
yes I have done it at some point, I am a bit worried because this was a conda package that is some layers below many other packages, so not sure if uusing pip on it will fuck things up
 
@AndrasDeak--СлаваУкраїні that was what I suggested. It does work quite well but you should always do the pip installs last after all the conda installs. In that situation I like making a yaml file to define the whole environment as I showed above, so it's super easy to rebuilt it in case you eff up.
 
I may wait unitl Friday to see if they update the conda package, which they told me they would
(basically, I am using ASTRA, the competition of TIGRE, and I found a serious memory leak)
NOOBS
haha joking, its a great package
 
10:33 AM
@flawr ah, OK. There was a lot of text so I just skipped it, obviously.
 
@AndrasDeak--СлаваУкраїні I do the same when I encounter documentation of stuff:P
No I just wanted to say that it does work quite well in my opinion if you're aware of the pitfalls:)
 
Well the page I linked doesn't say "it won't work", it says "conda will not be aware of the pip-installed package so things can eventually break, creating an unusable and not reproducible environment".
 
 
1 hour later…
11:43 AM
Right if you keep piling things on top of eachother:)
 
12:05 PM
I'm just saying that "works fine" is wrong when it should be "works fine if you don't go overboard and there's always a chance of things blowing up, better not risk your main env if you have one"
low-probability catastrophic failure should never be a fine print
 
 
4 hours later…
4:09 PM
0
Q: Display region of convergence in MATLAB like that in theory books?

DSPCShttps://dsp.stackexchange.com/questions/83285/finding-and-displaying-laplace-or-z-transform-rocregion-of-convergence-using-m Above question has some relevant but not complete detail. For example if we want to indicate region of convergence like hatched area(area having diagonal lines) just like i...

I like the "How to do just like in theory book"
 
 
6 hours later…
10:03 PM
Why do I hear some dramatic music when looking at this plot?
 

« first day (2547 days earlier)      last day (698 days later) »