jupyter-xeus / xeus-calc Goto Github PK
View Code? Open in Web Editor NEWJupyter kernel for a simple calculator
License: BSD 3-Clause "New" or "Revised" License
Jupyter kernel for a simple calculator
License: BSD 3-Clause "New" or "Revised" License
Line 36 in 47e651b
Shouldn't the directory name xeus-calc
coincide with xcalc
, the kernel's display name?
The build instructions fail for the conda environment that is created according to the installation instructions. On macOS, I got this error:
$ cmake -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..
-- Building xeus-calc v0..
CMake Error at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "Findxtl.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "xtl", but
CMake did not find one.
...
I could fix that by following the alternative instructions in CONTRIBUTING.md:
conda create -n xeus-calc -c conda-forge -c defaults xtl nlohmann_json cppzmq xeus
Issue: The current main.cpp is incompatible with the new kernel constructor in Xeus 2. (I presume xeus-calc ought to be current with xeus.)
Fix: Apply the changes in the Xeus 2 example main.cpp, e.g., 2937cc6.
Sample build error:
$ make
[ 25%] Building CXX object CMakeFiles/xeus-calc.dir/src/xeus_calc_interpreter.cpp.o
[ 50%] Linking CXX shared library libxeus-calc.dylib
[ 50%] Built target xeus-calc
[ 75%] Building CXX object CMakeFiles/xcalc.dir/src/main.cpp.o
.../xeus-calc/src/main.cpp:28:19: error: no matching constructor for initialization of 'xeus::xkernel'
xeus::xkernel kernel(config, xeus::get_user_name(), std::move(interpreter));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../include/xeus/xkernel.hpp:31:20: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class XEUS_API xkernel
^
.../include/xeus/xkernel.hpp:62:9: note: candidate constructor not viable: requires at least 4 arguments, but 3 were provided
xkernel(const std::string& user_name,
^
.../include/xeus/xkernel.hpp:51:9: note: candidate constructor not viable: requires at least 5 arguments, but 3 were provided
xkernel(const xconfiguration& config,
^
1 error generated.
make[2]: *** [CMakeFiles/xcalc.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/xcalc.dir/all] Error 2
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.