Comments (9)
This is an issue with some kernels which are janky and don't put the output in the right place. Which Javascript kernel are you using?
from hydrogen.
It's the IJavascript kernel I assume (I just read n-riesco/ijavascript#31).
from hydrogen.
Indeed
Forget software. Strive to make an impact, deliver a valuable change.
(Vær så snill og hjelp meg med å forbedre norsken min – skriftlig og
muntlig. Takk!)
Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -
- juni 2015 17:28 skrev "Kyle Kelley" [email protected]:
It's the IJavascript kernel I assume (I just read n-riesco/ijavascript#31
n-riesco/ijavascript#31).—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from hydrogen.
Hi everyone,
I've tried to reproduce this issue and I've noticed that:
- if I don't save the document before pressing
ctrl-alt-enter
, no output is shown (only a looping icon). - if I save the document, then I get the result of calling
console.log("Hello, Jupyter")
, which isundefined
, but I don't see the text written toprocess.stdout
.
from hydrogen.
I've quickly skimmed through Hydrogen's code. If I understood correctly this, when a kernel returns a result, Hydrogen doesn't show what was written to stdout
.
I'm planning to add a flag to IJavascript to let the user silence undefined
results (so that it plays nicely with Hydrogen). Most likely, I will make this the default behaviour.
from hydrogen.
I like the way Light Table works: returning the result of the statement
(even if being undefined) and having a separate output view where I can go
check for side effects. Though anything is much better than nothing :)
Forget software. Strive to make an impact, deliver a valuable change.
(Vær så snill og hjelp meg med å forbedre norsken min – skriftlig og
muntlig. Takk!)
Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -
- juni 2015 19:36 skrev "Nicolas Riesco" [email protected]:
I've quickly skimmed through Hydrogen's code. If I understood correctly this
https://github.com/willwhitney/hydrogen/blob/2d2ae6e49e556a45c39231c758dd57afda56202d/lib/result-view.coffee#L78,
when a kernel returns a result, Hydrogen doesn't show what was written to
stdout.
I'm planning to add a flag to IJavascript to let the user silence undefined
results (so that it plays nicely with Hydrogen). Most likely, I will make
this the default behaviour.
—
Reply to this email directly or view it on GitHub
#52 (comment).
from hydrogen.
@n-riesco That's not where that logic is, but you're basically right. My reading is that kernels are supposed to put their stdout
in the io
stream: http://ipython.org/ipython-doc/stable/development/messaging.html#streams-stdout-stderr-etc
I'll look into the issue with not getting results until the file is saved.
@jakubholynet I agree in principle with separating those concerns, but due to kernel variability this is not feasible. Some kernels put all their results in the io
stream, some put them into an execute_reply
, etc. Right now my strategy is to just copy Jupyter's behavior of showing all the results.
from hydrogen.
@willwhitney IJavascript does send stdout
to the IOSocket
(as IPython and IJulia do). The difference is that whereas IJavascript returns undefined
results, IPython drops None
s and IJulia drops nothing
s.
from hydrogen.
@jakubholynet This is issue is solved in IJavascript v5.0.3 (now available from npm
)
@willwhitney This issue turned out to be solved by the PR you sent me last time. Unfortunately, I hadn't made it available on npm
.
I'm sorry for all the inconvenience.
from hydrogen.
Related Issues (20)
- hydrogen fails to install on Atom HOT 2
- fialedto activate
- npm WARN deprecated [email protected] HOT 2
- Failed to activate the Hydrogen package HOT 18
- [email protected] failed
- Interactive input in output area
- VSCode: port or alternative HOT 12
- Uncaught Error: Cannot find module 'lodash/debounce'Require stack:- $ATOM_HOME/packages\Hydroge... HOT 3
- Uncaught error: no native build was found for platforms HOT 4
- Please port to Vs Code or any other IDE HOT 1
- Uncaught Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=85 uv... HOT 2
- TypeError when using hydrogen with pulsar HOT 4
- Hi, If the notebook in "not trusted" mode. Just click on it and make it trusted then save the file. It will work fine.
- SCRIPT WONT EXECUTE. HOT 1
- can't rebuild zeromq for pulsar
- Newly installed python modules cannot be found by hydrogen in pulsar
- [18:30] r p npm WARN deprecated [email protected]: this library is no longer supported [18:31] r p npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic [18:31] r p npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic
- deleted
- Is this going to be maintained? HOT 5
- Publish Hydrogen to Pulsar Package Repository 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 hydrogen.