Comments (4)
I am not sure if there is a possibility provided by ipython. I think it would be a good idea to add an api for that.
IRuby.mode = nil, :console, :notebook, :qtconsole, ...
IRuby.notebook?
from iruby.
Yeah I'm also thinking something on those lines.
from iruby.
This is not a good idea and it is by design for the backend not to know the frontend. Use IRuby.display with different mimetypes if you want't to achieve something specific.
from iruby.
I've found myself wanting to do a similar thing fwiw - show an IRuby table if its IRuby and a text table otherwise. A hacky way to do this is:
def iruby?
defined?(IRuby) && !IRuby::Kernel.instance.nil?
end
edit: more reliable method
from iruby.
Related Issues (20)
- Detaching from minrk/iruby HOT 3
- Javascript output is base64 encoded HOT 6
- Add a method to switch backend HOT 1
- iruby.rb should perform `require "iruby/logger"` HOT 1
- SVG images do not show up
- Release 0.7.0
- self no longer works with PlainBackend HOT 7
- google colab not working HOT 6
- iruby does not install/work with Ubuntu snap install of ruby? HOT 3
- Shutdown takes 5 seconds per kernel HOT 3
- Pry breaking point/code navigation behavior in Jupyter HOT 1
- Suggestion: to_iruby should take precedence over other display methods HOT 5
- Support connecting to running rails server session
- Module Import in a Notebook HOT 1
- Issue with iruby while using asdf-vm as the version manager? HOT 7
- Using IRuby.input or IRuby.form hangs Kernel HOT 5
- [Nuisance issue] Using Gnuplot prints correct graph, also throws error HOT 8
- Can a standard class method be overridden in Jupyter/Iruby? HOT 2
- .irbrc file not loaded HOT 1
- Issue with ipython and/or vscode? HOT 2
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 iruby.