Giter Club home page Giter Club logo

Comments (8)

n-riesco avatar n-riesco commented on September 28, 2024

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.

n-riesco avatar n-riesco commented on September 28, 2024

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.

n-riesco avatar n-riesco commented on September 28, 2024

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.

drandreaskrueger avatar drandreaskrueger commented on September 28, 2024

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.

drandreaskrueger avatar drandreaskrueger commented on September 28, 2024

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.

drandreaskrueger avatar drandreaskrueger commented on September 28, 2024

npm update ijavascript nel

Great.

Yes, fixed:

undefined

1
2
3
4
5

Done!

Very nice. Thanks a lot!

:-)

from ijavascript.

n-riesco avatar n-riesco commented on September 28, 2024

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.

drandreaskrueger avatar drandreaskrueger commented on September 28, 2024

Oh thanks. That is kind.

  1. uninstalled old nodejs (v4.2...)
  2. installed https://nodejs.org/dist/v4.4.2/node-v4.4.2-x64.msi
  3. npm --version && node --version
    3.5.2
    v4.4.2

from ijavascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.