Comments (4)
You should be able to just pass the backend via the existing flag mechanism, does that not work for you?
eg: #>--backend:cpp
at the top of a block.
The kernel itself is compiled to C by nimble install, but you can clone the repo and compile manually to cpp if you really want it, although I don't really see the point to that.
from jupyternim.
You should be able to just pass the backend via the existing flag mechanism, does that not work for you?
eg: #>--backend:cpp at the top of a block.
No, it's not working
from jupyternim.
OK, looks like I forgot my own way of defining flags, sorry.
It works for me by pasting #>flags --backend:cpp
at the top of a code cell.
Note that this will change the compilation of all the notebook to cpp, and due to the way this is done in the background, it will affect previous blocks too, so you can't have a block compiled to c and another with cpp (yet?).
The default is already compiling to C, it basically writes out a temporary nim file, compiles it, and show you only the output from the latest block.
I have a super experimental mode with hot code reloading support, but it had some pretty serious bugs like crashing when echoing a float number due to bugs in the compiler so that is on hold for now, I will revisit it at some point (probably when incremental compilation gets more stable).
ps: Thanks for using this! I'm always happy to get feedback and bug reports
from jupyternim.
It works for me by pasting #>flags --backend:cpp at the top of a code cell.
Thanks, that worked! Closing the issue now...
I have a super experimental mode with hot code reloading support, but it had some pretty serious bugs like crashing when echoing a float number due to bugs in the compiler so that is on hold for now, I will revisit it at some point (probably when incremental compilation gets more stable).
Intersting, looking forward to it :)
ps: Thanks for using this! I'm always happy to get feedback and bug reports
Thank you! I was so happy when I found out you could use Jupyter Notebook with Nim, as I'm kinda new to it and I've come from a Python background.
from jupyternim.
Related Issues (13)
- Error \u allowed in character literal
- zmq.nim(737, 18) Error: cannot instantiate: 'T'
- build failed on Windows 10 HOT 10
- TODO/Help wanted HOT 7
- cant install `jupyternim` on nim 1.4.8 HOT 3
- zmq.dll problem HOT 3
- Jupyternim fails to install on macOS HOT 13
- Why requires zmq < 1.3.0 ? HOT 2
- example-notebook.ipynb missing imports
- INim => JNim ? inim already taken by https://github.com/AndreiRegiani/INim HOT 5
- Error installing jupyternim from source on macOS HOT 2
- Need to update for Nim 0.20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyternim.