Comments (8)
I'm in the process of updating the way IJavascript handles asynchronous output. It looks like the beta version ([email protected]) has broken that example. It should work with the previous version [email protected].
[email protected] handles asynchronous outputs by showing them in the last active cell.
[email protected] wraps console.log
to ensure the asynchronous output is shown in the cell where the asynchronous code was executed. I haven't updated the documentation yet, but I described the new API here.
from ijavascript.
I don't test IJavascript regularly (or very thoroughly) on Windows. I rely on reports from users like yours. If I remember correctly, when I tested IJavascript on a Windows machine, I installed it locally. Could you check whether a local install works for you (npm install ijavascript
)?
from ijavascript.
I've fixed the issue with the above asynchronous example in [email protected]
. To pick up the latest changes, you can run:
npm update ijavascript nel
from ijavascript.
Could you check whether a local install works for you (npm install ijavascript)?
Done.
Yes, the installation itself seems to work:
> [email protected] install D:\javascriptLearning\node_modules\zmq
> node-gyp rebuild
D:\javascriptLearning\node_modules\zmq>if not defined npm_config_node_gyp (node "C:\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
binding.cc
..\binding.cc(642): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(643): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(644): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(645): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(646): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(647): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(648): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(649): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(650): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(651): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(665): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(666): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(667): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(668): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(669): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(670): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(671): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(672): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(673): warning C4244: 'argument' : conversion from 'int64_t' to 'const int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(674): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
D:\javascriptlearning\node_modules\nan\nan_new.h(208): warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(593) : see reference to function template instantiation 'v8::Local<v8::Number> Nan::New<v8::Number,T>(A0)' being compiled
with
[
T=int64_t
, A0=int64_t
]
..\binding.cc(647) : see reference to function template instantiation 'v8::Local<v8::Value> zmq::Socket::GetSockOpt<int64_t>(int)' being compiled
D:\javascriptlearning\node_modules\nan\nan_new.h(208): warning C4244: 'argument' : conversion from 'uint64_t' to 'double', possible loss of data [D:\javascriptLearning\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(593) : see reference to function template instantiation 'v8::Local<v8::Number> Nan::New<v8::Number,T>(A0)' being compiled
with
[
T=uint64_t
, A0=uint64_t
]
..\binding.cc(649) : see reference to function template instantiation 'v8::Local<v8::Value> zmq::Socket::GetSockOpt<uint64_t>(int)' being compiled
win_delay_load_hook.c
Creating library D:\javascriptLearning\node_modules\zmq\build\Release\zmq.lib and object D:\javascriptLearning\node_modules\zmq\build\Release\zmq.exp
Generating code
Finished generating code
zmq.vcxproj -> D:\javascriptLearning\node_modules\zmq\build\Release\\zmq.node
D:\javascriptLearning
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
is in log.txt when I do this:
D:\javascriptLearning\ijavascript-testing>npm install ijavascript > log.txt
which prints to console this:
npm WARN enoent ENOENT: no such file or directory, open 'D:\javascriptLearning\package.json'
npm WARN javascriptLearning No description
npm WARN javascriptLearning No repository field.
npm WARN javascriptLearning No README data
npm WARN javascriptLearning No license field.
BUT then ijs
still does not work:
D:\javascriptLearning\ijavascript-testing>ijs
results in:
'ijs' is not recognized as an internal or external command,
operable program or batch file.
from ijavascript.
Hah. Found the way (local installation with npm install ijavascript
) :
D:\javascriptLearning\ijavascript-testing>..\node_modules\.bin\ijs
so I have to manually address the correct path
..\node_modules\.bin\ijs
then ijs gets executed:
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook`... continue in 5 sec. Press Ctrl-C to quit now.
[I 05:29:27.289 NotebookApp] Serving notebooks from local directory: D:\javascriptLearning\ijavascript-testing
[I 05:29:27.289 NotebookApp] 0 active kernels
[I 05:29:27.289 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 05:29:27.290 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
from ijavascript.
npm update ijavascript nel
Great.
Yes, fixed:
undefined
1
2
3
4
5
Done!
Very nice. Thanks a lot!
:-)
from ijavascript.
I'm sorry to here there is still a problem executing ijs
. I will try to reproduce it in my Windows machine. Could you describe what method you used to install Node.js?
from ijavascript.
Oh thanks. That is kind.
- uninstalled old nodejs (v4.2...)
- installed https://nodejs.org/dist/v4.4.2/node-v4.4.2-x64.msi
- npm --version && node --version
3.5.2
v4.4.2
from ijavascript.
Related Issues (20)
- [requirejs] Unable to load library with Jupyter Notebook HOT 5
- Thoughts on how to run iJavaScript on mybinder? HOT 4
- No output when using %%javascript magic HOT 2
- Unable to run in Ubuntu WSL2 Visual Studio Code (`spawn ijskernel ENOENT`) HOT 2
- import / require statements break vscode code analysis HOT 2
- IJavaScript stopped working after upgrading the major version of node.js HOT 2
- Jupyter notebook (and Jupyter lab too) gives error when loading d3 library HOT 2
- Updated NVM version, got error "no such file or directory" ".../bin/node" HOT 2
- Add a rebuild command
- jupyterlite Support HOT 1
- Java script kernel stops working in Jupyter Lab HOT 3
- Is it still maintained HOT 4
- Cant install ijavascript (npm ERR! enoent spawn C:\Windows\system32\cmd.exe ENOENT) HOT 2
- ijsinstall: not working due to wrong use of ipython --user HOT 6
- SyntaxError: Cannot use import statement outside a module HOT 2
- install failed due to zeromq (Node v21) HOT 1
- npm install fails on macos Sonoma 14.4.1 HOT 3
- When I use npm to install the ijavascript kernel and switch to it in the Jupyter environment in VS Code, then switch back to the Python environment, the code suggestions are still those from the JS environment. How can I fix this? HOT 1
- npm warn deprecated [email protected]: Please upgrade to version 7 or higher. HOT 3
- JSON.stringify() wraps the output within ` (Grave Accent mark) HOT 1
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 ijavascript.