@@ -46,14 +46,17 @@ Installation within a mamba environment (wasm build instructions)
4646======================== 
4747
4848These instructions will assume you have cmake installed on your system. First clone the repository, and move into that directory
49+ 
4950.. code-block :: bash 
51+ 
5052    git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git 
5153    cd  ./xeus-cpp 
5254
5355
5456
5557
5658.. code-block :: bash 
59+ 
5760    cd  $HOME  
5861    git clone https://github.com/emscripten-core/emsdk.git 
5962    cd  emsdk 
@@ -65,6 +68,7 @@ You'll now want to make sure you're using emsdk version "3.1.45" and activate it
6568
6669
6770.. code-block :: bash 
71+ 
6872    micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32 
6973    mkdir build 
7074    pushd  build 
@@ -83,22 +87,16 @@ You are now in a position to build the xeus-cpp kernel. You build it by executin
8387
8488
8589.. code-block :: bash 
90+ 
8691    micromamba create -n xeus-lite-host jupyterlite-core 
8792    micromamba activate xeus-lite-host 
8893    python -m pip install jupyterlite-xeus 
8994    jupyter lite build --XeusAddon.prefix=$PREFIX  
9095
91- xcpp.data ` which contains the binary representation of the file(s)
92- we want to include in our application. As of now this would contain all important files like Standard Headers,
93- Libraries etc coming out of emscripten's sysroot. Assuming we are still inside build we should do the following
94- 
95- .. code-block :: bash 
96-     cp $PREFIX /bin/xcpp.data _output/extensions/@jupyterlite/xeus/static 
97-     cp $PREFIX /lib/libclangCppInterOp.so _output/extensions/@jupyterlite/xeus/static 
98- 
9996
10097
10198.. code-block :: bash 
99+ 
102100    jupyter lite serve --XeusAddon.prefix=$PREFIX  
103101
104102
0 commit comments