Comments (7)
I added support for evcxr protocol, so now you can use programs that targets it, example: https://github.com/sigmaSd/IRust/blob/master/crates/irust_repl/irust_kernel/evcxr.ipynb
from irust.
I reread the jupyter docs and the implementation here https://github.com/sigmaSd/IRust/tree/master/crates/irust_repl#jupyter-kernel
what I see is:
- The current implementation works but is bear-bone
- I have a couple of ideas on how to improve it :
- Instead of waiting on irust to be more ipc friendly, we can just have a new binary irust_jupyter that executes the commands it receives from the python kernel (like the current re example but with more on the rust side)
- I'm not sure though if the parsing of the input should be on the python or the rust side
But I don't want to go through the effort of adding this, without knowing how people use it, so my plan for now is to wait for feedback on the current implementations:
- whats is being used for
- what are the obvious limitations and things to improve
- are there particular features ppl want
And I'll try to keep fixing low hanging fruits, until the picture is more clear and I can start on the rework
from irust.
Yes unfortunately that's a core limitation to this project, it's just how it works
from irust.
I improved the installation experience https://github.com/sigmaSd/IRust/blob/master/crates/irust_repl/README.md#jupyter-kernel
Now to use the kernel you just need:
pip install irust_kernel
python -m irust_kernel.install
from irust.
Any updating in this feature? I believe there are many people like me is waiting for this.
from irust.
I just want to reiterate that tere is already evcxr which have jupyter support, I'm sure they would accept feature requests for missing features
The problem with jupyterr and rust, is we don't have a real repl yet as in the code needs to be recompiled each time, so it's really slow, compare that to the instantaneous experience of Python and Julia for example
To answer your question, unfortunately I don't have time to work on it now, I'll try to get to it when I can or maybe someone can send a pr
from irust.
I put the re.exe
in the same directory of irust.py
, and change the absolute absolute_path/re
path in irust.py
to relative path re.
And then run jupyter from the directory. Then everything works fine, the jupyter just run magically as fast as like running the python on jupyter.
But I have an uncertainty:
Liking using irust_repl
in terminal, each time I executing an input, the already inserted code to the Repl
object will run again. I am using irust_repl
in an website server, which accept input codes at once and run the all input codes then return output. So the behavior of rerunning the inserted codes have no effect on my website server. But I thought it may have effects when running irust_repl
in jupyter. As I know, the common process of using jupyter is running the cells over and over again without restarting the kernel. So if the inserted codes have some heavy task of computing, it will take some unnecessary time to rerun these codes.
from irust.
Related Issues (20)
- Use `rustyline` or `reedline` for input? HOT 1
- Move theme settings from config.toml to themes config
- typing twice in windows with crossterm-0.26+ HOT 2
- Can irust repl evaluate code with release mode instead of debug mode? HOT 3
- Cannot use two `irust_repl`s at the same time. HOT 27
- Rust analyzer is not working on Windows HOT 6
- Interactive usage HOT 3
- IRust installation fails due to use of unstable library feature 'once_cell' HOT 3
- FileNotFoundError while `python -m irust_kernel.install` HOT 1
- cargo-edit requires --path argument for a local dependency after version 0.9.1 HOT 2
- irust doesn't display Thai text properly. HOT 1
- Unclear documentation on importing local crates HOT 5
- Autocomplete doesn't work HOT 10
- untitled issue HOT 4
- Proposal: Split eval output HOT 3
- Option to specify config.toml path HOT 6
- Support nREPL protocol? HOT 2
- Failed to format error output HOT 2
- Logo missing on Jupyter lab launcher page HOT 3
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 irust.