Issue
I have installed xeus, xeus-cling and jupyter extension. I changed the kernel to one of the C++ versions, the cell language to C++ but when I click run the cell never outputs. Can someone please help me solve this?
Solution
Running xeus-cling under vs-code
Ceus works in the vs-code environment. You have to activate your conda environment and invoke vs-code from it (i use the code insiders edition). In linux this looks like
conda activate xeus-cling # my env for xeus-cling; where i compiled cling
then invoke code (insiders) in your project directory
code-insiders .& # or code .& if you are using the stable version
If you have still problems try the following:
start a jupyter notebook from command line (of course in your conda environment described above)
jupyter notebook --no-browser
Copy or remember the line with the token, which looks like
http://127.0.0.1:8888/?token=8daf8f57bef55918defb467defc55f0305803caa27dd01d2
next go to code-insiders and click on the bottom bar Jupyter Server: Remote
on the top of the window a list will pop up, looking like
select Existing or copy the token into it
now a message should appear reload kernel , click on the button to do so
in the bottom bar select the kernel to e.g. C++14
create a new blank jupyter worksheet and don't forget to change the cell to C++ !!
Answered By - abu_bua
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.