Comments (8)
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.
I installed MacOS nteract https://github.com/nteract/nteract and this TypeScript kernel works with it.
Is this a hydrogen specific issue?
from tslab.
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.
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.
@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.
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"
}
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.
very sorry Orz
v1.0.13 is RESOLVED
I forgot to tslab install
after upgrading v1.0.13
Say sorry again Orz
from tslab.
@we684123 😃No worries, it do be like that sometimes.
from tslab.
Related Issues (20)
- no code completion and cannot import global packages
- tslab in VS Code HOT 2
- Cannot find name 'console'.
- How do I set the lib compiler option?
- Cannot import packages from nodejs. HOT 2
- How to specify node version? HOT 1
- library issues
- Error [ERR_REQUIRE_ESM]: require() of ES Module not supported. HOT 2
- Using tslab as interactive documentation with turborepo #question
- Running notebooks from VSCode HOT 1
- General: future plans for tslab HOT 2
- are there any "magics" in this kernel?
- No BigInt support
- unexpected error: TypeError: Cannot read properties of undefined (reading 'locals') HOT 9
- Stop spreading such non-sense like JS is 40x faster than Python HOT 4
- Fails to install with Python 3.11
- unexpected error: Error: Unexpected pending rebuildTimer HOT 1
- Importing local files?
- Outputting tables?
- Is Jupyterlab 4 officially supported?
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 tslab.