GithubHelp home page GithubHelp logo

jupyter-xeus / xleaflet Goto Github PK

View Code? Open in Web Editor NEW
84.0 8.0 16.0 19.5 MB

C++ backend for the jupyter leaflet widget

License: BSD 3-Clause "New" or "Revised" License

CMake 6.66% C++ 72.49% Jupyter Notebook 20.85%

xleaflet's Introduction

xleaflet

Azure Pipelines Appveyor Documentation Binder Join the Gitter Chat

C++ backend for the jupyter-leaflet map visualization library

Usage

Selecting a base layer for a map:

Basemap Screencast

Loading a geojson dataset:

GeoJSON Screencast

Using the splitmap control:

Splitmap Screencast

Displaying velocity data on the top of a map:

Velocity Screencast

Installation

We provide a package for the mamba (or conda) package manager.

  • Installing xleaflet and the C++ kernel
mamba install xeus-cling xleaflet -c conda-forge

Then, the front-end extension must be installed for either the classic notebook or JupyterLab.

  • Installing the extensions for the classic notebook
mamba install widgetsnbextension -c conda-forge
mamba install ipyleaflet -c conda-forge
  • Installing the JupyterLab extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-leaflet

Installation from sources

Or you can directly install it from the sources if you have all the dependencies already installed:

cmake -D CMAKE_INSTALL_PREFIX=your_install_prefix
make install

Trying it online

To try out xleaflet interactively in your web browser, just click on the binder link:

Binder

Documentation

To get started with using xleaflet, check out the full documentation

http://xleaflet.readthedocs.io/

Dependencies

All the dependencies of xleaflet are available for the mamba package manager.

xleaflet xwidgets xeus xtensor
master ~0.27.0 >=3.0.0,<4.0.0 >=0.23.0,<0.24
0.17.0 ~0.27.0 >=3.0.0,<4.0.0 >=0.23.0,<0.24
0.16.0 ~0.26.0 >=2.0.0,<3.0.0 >=0.23.0,<0.24
0.15.0 ~0.25.0 >=1.0.0,<2.0.0 >=0.23.0,<0.24
0.14.0 ~0.25.0 >=1.0.0,<2.0.0 >=0.23.0,<0.24
0.13.1 ~0.22.0 >=0.24.0,<0.26 >=0.20.8,<0.22
0.13.0 ~0.22.0 >=0.24.0,<0.26 >=0.20.8,<0.22
0.12.0 ~0.22.0 >=0.24.0,<0.25 >=0.20.8,<0.22

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

This software is licensed under the BSD-3-Clause license. See the LICENSE file for details.

xleaflet's People

Contributors

johanmabille avatar jtpio avatar martinrenou avatar sylvaincorlay avatar vasavanthiru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xleaflet's Issues

xleaflet doesn't build on linux

xleafet doesn't build on my ArchLinux, @martinRenou was able to reproduce it on his Fedora.

Steps to reproduce are:

  1. Download dependencies with conda
  2. Create a build dir
  3. CMake
  4. make install

And get the following error:

Scanning dependencies of target xleaflet
[  3%] Building CXX object CMakeFiles/xleaflet.dir/src/xcircle_marker.cpp.o
[  6%] Building CXX object CMakeFiles/xleaflet.dir/src/xcircle.cpp.o
[  9%] Building CXX object CMakeFiles/xleaflet.dir/src/xcontrol.cpp.o
In file included from /home/mariana/.conda/envs/xleaflet/include/xproperty/xobserved.hpp:20,
                 from /home/mariana/.conda/envs/xleaflet/include/xwidgets/xobject.hpp:18,
                 from /home/mariana/Development/xleaflet/include/xleaflet/xcontrol.hpp:19,
                 from /home/mariana/Development/xleaflet/src/xcontrol.cpp:1:
/home/mariana/Development/xleaflet/include/xleaflet/xcontrol.hpp: In instantiation of ‘xlf::xcontrol<D>::xcontrol() [with D = xw::xmaterialize<xlf::xcontrol>]’:
/home/mariana/.conda/envs/xleaflet/include/xwidgets/xmaterialize.hpp:71:45:   required from ‘xw::xmaterialize<B, P>::xmaterialize(bool, A&& ...) [with A = {}; B = xlf::xcontrol; P = {}]’
/home/mariana/.conda/envs/xleaflet/include/xwidgets/xmaterialize.hpp:63:54:   required from ‘xw::xmaterialize<B, P>::xmaterialize(A&& ...) [with A = {}; B = xlf::xcontrol; P = {}]’
/home/mariana/Development/xleaflet/src/xcontrol.cpp:4:56:   required from here
/home/mariana/Development/xleaflet/include/xleaflet/xcontrol.hpp:43:67: internal compiler error: Segmentation fault
   43 | PROPERTY(std::string, derived_type, position, "topleft", XEITHER("topright", "topleft", "bottomright", "bottomleft"));
      |  

I tried to use different versions of xtensor, xeus and xwidgets but didn't make any difference.
Also tried to force the build with a different version of g++ and didn't work either.

Compiler segfault on linux

@marimeireles and I have the same compiler segfault when trying to compile xleaflet master on Linux:

In file included from /home/martin/miniconda3/envs/xleaflet/include/xproperty/xobserved.hpp:20,
                 from /home/martin/miniconda3/envs/xleaflet/include/xwidgets/xobject.hpp:18,
                 from /home/martin/github/xleaflet/include/xleaflet/xcontrol.hpp:19,
                 from /home/martin/github/xleaflet/src/xcontrol.cpp:1:
/home/martin/github/xleaflet/include/xleaflet/xcontrol.hpp: In instantiation of ‘xlf::xcontrol<D>::xcontrol() [with D = xw::xmaterialize<xlf::xcontrol>]’:
/home/martin/miniconda3/envs/xleaflet/include/xwidgets/xmaterialize.hpp:71:45:   required from ‘xw::xmaterialize<B, P>::xmaterialize(bool, A&& ...) [with A = {}; B = xlf::xcontrol; P = {}]’
/home/martin/miniconda3/envs/xleaflet/include/xwidgets/xmaterialize.hpp:63:54:   required from ‘xw::xmaterialize<B, P>::xmaterialize(A&& ...) [with A = {}; B = xlf::xcontrol; P = {}]’
/home/martin/github/xleaflet/src/xcontrol.cpp:4:56:   required from here
/home/martin/github/xleaflet/include/xleaflet/xcontrol.hpp:43:67: internal compiler error: Segmentation fault
   43 |         XPROPERTY(std::string, derived_type, position, "topleft", XEITHER("topright", "topleft", "bottomright", "bottomleft"));
      |                                                                   ^~~~~~~
Please submit a full bug report,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.