Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Wolf Vollprecht
    @wolfv
    we just need to copy the implementation to mamba
    Tim Paine
    @timkpaine
    whats a good way to check a dep set with mamba (e.g. from a conda forge package)
    7 replies
    Bhavyansh Mishra
    @BhavyanshM
    Hello everyone. I am currently trying out xtensor for the first time, and trying to load it as a submodule in CMake. Is that a decent approach to using xtensor on Ubuntu 20.04? I've been getting multiple compilation errors regarding xtl.
    /usr/include/xtl/xvariant_impl.hpp:1287:35: error: wrong number of template arguments (1, should be at least 2)
     1287 |               case B + 29: return MPARK_DISPATCH(B + 29);
          |                                   ^~~~~~~~~~~~~~
    /usr/include/xtl/xvariant_impl.hpp:1198:16: note: provided for ‘template<bool B, class R, class ... ITs> struct mpark::detail::visitation::base::dispatcher1198 |         struct dispatcher;
          |                ^~~~~~~~~~
    /usr/include/xtl/xvariant_impl.hpp:1287:35: error: expected ‘;’ before ‘)’ token
     1287 |               case B + 29: return MPARK_DISPATCH(B + 29);
          |                                   ^~~~~~~~~~~~~~
    /usr/include/xtl/xvariant_impl.hpp:1287:35: error: expected primary-expression before ‘)’ token
    /usr/include/xtl/xvariant_impl.hpp:1288:35: error: wrong number of template arguments (1, should be at least 2)
     1288 |               case B + 30: return MPARK_DISPATCH(B + 30);
          |                                   ^~~~~~~~~~~~~~
    /usr/include/xtl/xvariant_impl.hpp:1198:16: note: provided for ‘template<bool B, class R, class ... ITs> struct mpark::detail::visitation::base::dispatcher1198 |         struct dispatcher;
          |                ^~~~~~~~~~
    /usr/include/xtl/xvariant_impl.hpp:1288:35: error: expected ‘;’ before ‘)’ token
     1288 |               case B + 30: return MPARK_DISPATCH(B + 30);
    Please advice. I'd highly appreciate all comments and suggestions.
    Johan Mabille
    @JohanMabille
    Hello, we highly discourage the usage of git submodule, they are conisdered as bad practice regarding management of dependencies. A better approach is to either install the dependencies from sources as explained in the README of the different projects, or use a package manager. We provide packages of the xtensor-stack for mamba, and xtensor has also been packaged for debian. Packages for Ubuntu should be available soon
    Mirco Marahrens
    @mircomarahrens
    Hello, is there a minimal cmake example for the section on "Designing language bindings with xtensor" (https://xtensor.readthedocs.io/en/latest/bindings.html) somewhere available? I try to follow the procedure but failing on the last part on exposing the function to Python. Within C++ the generalization is working like charm (at least my tests are running successfully).
    3 replies
    Sylvain Corlay
    @SylvainCorlay
    Hello
    There isn't such a cmake file unfortunately.
    It is very dependent of the language btw, especially for e.g. R and Julia that have weird toolchains on windows.
    Patrick Bos
    @egpbos
    hey, apologies for the lack of interaction on xtensor-fftw here! gitter isn't really in my system :) I see you were pinging me a few times @JohanMabille @pesterie, best to just hit me up in a github issue (or ask me to come on gitter via github :D chat can be more efficient and i'm always happy to help)
    hope you're all doing well! excited to see you're thinking about moving to c++17 btw, that should allow to clean up a lot of code with constexpr if
    Frank Schlimbach
    @fschlimb
    Hi,
    I am currently evaluating xtensor. I wonder which projects/products are using xtensor. Is there any information around that which you could share?
    Wolf Vollprecht
    @wolfv
    @fschlimb I don't think we have such a list at this point
    You could use github code search to find a couple of users: https://github.com/search?q=xtensor.hpp&type=Code
    Mario Emmenlauer
    @emmenlau
    @fschlimb It may also help for which use case you are evaluating.
    Thorsten Beier
    @DerThorsten
    @mircomarahrens you can try https://github.com/DerThorsten/cpp_cookiecutter . this is bit outdated but I personally use it still very often to generate python bindings for c++ projects with a CMake build system + xtensor
    Surbhi Sharma
    @ssurbhi560
    Hey folks! I needed some suggestion on a problem that I am facing and was redirected here for asking any questions regarding it. I have been trying to access multiple voila apps through nginx reverse proxy I also have a flask app which I am also using through the same reverse proxy. So, when I am doing so, if i redirected the location / directly to voila apps while voila app is running locally on my machine, it works. But when I am redirecting it for location /notebook1, I am not able to access the app. I the browser it shows it is loading and kernel is started but gets a 404 in accessing some static files ( ). I am a little new to nginx as well as voila. Any advice or suggestion regarding this would be of great help for me! Here is the nginx.conf file (https://pastebin.com/pHy6pgsU), and here is the voila.json file ( https://pastebin.com/gfx0gE8H), for now have been testing it just for one notebook if it works i will just add for the other two notebooks too with different ports. Here are the error message log I get when I try to open the voila through nginx reverse proxy (https://pastebin.com/C0h7f61S)
    Please let me know if any more info is needed.
    Duc Trung Le
    @trungleduc
    in your case you can try voila ... --base_url=/notebook1/
    Surbhi Sharma
    @ssurbhi560
    Thanks @trungleduc , it worked! \o/
    I set the base_url and also change the nginx.conf to redirect to updated url for voila app, and it worked. :D
    Tom de Geus
    @tdegeus
    Hi ! Is there a way to get the indices resulting from unique ?
    Benoit Bovy
    @benbovy
    Hello! Quick question: is there a way to vectorize a C++ function (and expose it in Python as a Numpy ufunc) with arguments of non-POD type (e.g., a custom C++ class exposed in Python)? It doesn’t seem to be supported with pybind11… so I guess it’s not supported either by xtensor-python’s pyvectorize? I was wondering if there could still be a way around it, e.g., using a lightweight wrapper calling xtensor’s xvectorize?
    Johan Mabille
    @JohanMabille
    Hello, I think it should work, pyvectorize does not rely on the vectorization mechanism from pybind11
    not 100% sure but you should definitely give it a try
    Benoit Bovy
    @benbovy
    Ok, thanks @JohanMabille ! I'll give it a try!
    Benjamin Bertrand
    @beenje
    Hello! Is there a way to force the channeldata.json to be regenerated in quetz? I deleted a package using the API but it's still in that file.
    qja
    @qja
    Hello i've been trying the xvega example notebooks (i'm trying to move my visualisations / data analysis from python in jupyter to cpp in jupyter) and find that generating one graph (executing one cell) takes a very long time (~minute) it seems to be around the same on my install and in the binder. Is that expected ? Kinda ruins the "interactive" part so i suppose i must not be using it correctly ?
    Bastian Zimmermann
    @BastianZim
    ICYI Mamba is mentioned as an official install method for Python packages on the AWS SageMaker website. First time I've seen that on such a big website. Kudos to everyone!
    Dave Hirschfeld
    @dhirschfeld
    Given that the laggards have now adopted mamba, is μmamba ready for the early adopters?
    I gather there were issues at the start with track_features or mutex packages but IIUC they've since been solved?
    Is μmamba now a feasible replacement for mamba in a production setting?
    ...and if not, why not? (maybe the concerns around μmamba aren't relevant to my particular usage)
    I'm wondering if the warnings in the README are still relevant?
    It can be used to bootstrap environments but it's currently experimental
    Note: it's advised to use micromamba in containers & CI only
    Bastian Zimmermann
    @BastianZim
    +1 from someone currently setting up his new laptop and deciding what to use.
    Dave Hirschfeld
    @dhirschfeld
    :+1: :eyes:
    Jaime Rodríguez-Guerra
    @jaimergp
    I am using umamba in one of my systems for three months now and no big issues so far! I keep my environments simple and numerous (one per project, or even tool). The biggest problem is typing micromamba all the time, but nothing that an alias cannot change :D
    Dave Hirschfeld
    @dhirschfeld
    :+1: Thanks - good to have some confirmation that it's not a crazy idea! :D
    Bastian Zimmermann
    @BastianZim
    That's great to hear! Would I be breaking anything if I alias micromamba and mamba? Just for muscle memory.
    Wolf Vollprecht
    @wolfv
    You'd break running mamba and micromamba side by side :)
    I've been using micromamba quite a lot locally, as well, and @adriendelsalle does it, too :)
    I can recommend it (and it's got nice autocompletion, too, on bash and zsh)
    one missing thing is self-updating
    Bastian Zimmermann
    @BastianZim
    Ahh yeah should clarify that I'd only use micromamba :smile:
    So just substitution of the underlying software.
    Adrien Delsalle
    @adriendelsalle
    that would work very smoothly. just take care that some additional flags are handled by micromamba, if you alias to mamba it will be hard to rollback ;)
    1 reply
    Wolf Vollprecht
    @wolfv
    Also we use the provision-with-micromamba github action quite a lot now, and it's also really nice (@beckermr started that one)
    1 reply
    Dave Hirschfeld
    @dhirschfeld
    Great! I'm looking to switch to umamba so don't need to run side-by-side. I'm also not that fussed on complete api compatibility (and would be happy for umamba to break compatibility to make improvements) so I'll give it a go as my primary package manager!
    Wolf Vollprecht
    @wolfv
    yeah the biggest "CLI" breakage is that we don't have the same kind of split wiht the env subcommand