Giter VIP home page Giter VIP logo

Comments (8)

yunabe avatar yunabe commented on May 30, 2024 4

Thank you for the detailed investigation.

Is this easy to change? Or are there any reasons not to change?

It's easy to bypass the issue. I released the new version with the fix (v1.0.13). Let me know if the change does not fix the problem.

from tslab.

yunabe avatar yunabe commented on May 30, 2024

I installed MacOS nteract https://github.com/nteract/nteract and this TypeScript kernel works with it.
Is this a hydrogen specific issue?

from tslab.

ed9w2in6 avatar ed9w2in6 commented on May 30, 2024

I have not tried nteract before, I am not sure.
But I believe this is a Hydrogen specific issue.

This is weird as AFAIK they derived from the same project isn't it?

Again, I already filed an issue on Hydrogen. ( nteract/hydrogen --- issue#1992 )
I think the problem is on Hydrogen because the jupyter_client documentation explicitly says:
"the text {connection_file} in any argument will be replaced with the path to the connection file."

So this issue is not necessary to be fixed.

Is this easy to change? Or are there any reasons not to change?

from tslab.

we684123 avatar we684123 commented on May 30, 2024

It's easy to bypass the issue. I released the new version with the fix (v1.0.13). Let me know if the change does not fix the problem.

sorry , the problem still exists on v1.0.13 qwq


Versions

OS version:
win10 1909

atom --version

Atom    : 1.51.0
Electron: 5.0.13
Chrome  : 73.0.3683.121
Node    : 12.0.0

apm --version

apm  2.5.0
npm  6.14.5
node 10.20.1 x64
atom 1.49.0
python 3.8.2
git 2.28.0.windows.1
visual studio 2015

Hydrogen version:

Hydrogen version: 2.14.5

Logs

UnhandledPromiseRejection: Error: ENOENT: 
no such file or directory, open '{connection_file}' at Object.openSync (fs.js:466:3) at Object.readFileSync (fs.js:369:35) at ZmqServer.init 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\dist\jupyter.js:411:47) at startKernel 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\dist\main.js:101:12) at Command. 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\dist\main.js:165:9) at Command.listener [as _actionHandler] 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\node_modules\commander\index.js:413:31) at Command._parseCommand 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\node_modules\commander\index.js:914:14) at Command._dispatchSubcommand 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\node_modules\commander\index.js:865:18) at Command._parseCommand 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\node_modules\commander\index.js:882:12) at Command.parse 
(C:\Users\we684123\AppData\Roaming\npm\node_modules\tslab\node_modules\commander\index.js:717:10) { errno: -4058, syscall: 'open', code: 'ENOENT', path: '{connection_file}' }

from tslab.

ed9w2in6 avatar ed9w2in6 commented on May 30, 2024

@we684123
I had install tslab v1.0.13 from scratch and the problem is RESOLVED for me.
The kernel.json file matches the one I had provided above.

Can you first make sure you are on version v1.0.13?
You can know this by running tslab --version

If you are indeed on tslab version v1.0.13, can you also show your kernel.json file?
You can find the location of the kernel.json file with the command jupyter kernelspec list

The content should match this:

{
 "argv": [
   "tslab", 
   "kernel", 
   "--config-path",
   "{connection_file}",
   "--js"
  ], 
  "display_name": "JavaScript", 
  "language": "javascript"
}

from tslab.

we684123 avatar we684123 commented on May 30, 2024

yes, i had install tslab v1.0.13

but kernel.json content is :

{ 
"argv": ["tslab.cmd", "kernel", "--config-path={connection_file}"],
"display_name": "TypeScript", 
"language": "typescript"
}

Imgur

and if i change kernel.json content to :

{
"argv": ["tslab", "kernel", "--config-path","{connection_file}","--ts"],
"display_name": "TypeScript", 
"language": "typescript"
}

hydrogen return error :
error: unknown option '--ts'


if want to normal work, need change kernel.json content to :

{
"argv": ["tslab", "kernel", "--config-path","{connection_file}"],
"display_name": "TypeScript", 
"language": "typescript"
}

from tslab.

we684123 avatar we684123 commented on May 30, 2024

very sorry Orz
v1.0.13 is RESOLVED

I forgot to tslab installafter upgrading v1.0.13

Say sorry again Orz

from tslab.

ed9w2in6 avatar ed9w2in6 commented on May 30, 2024

@we684123 😃No worries, it do be like that sometimes.

from tslab.

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.