Comments (6)
I actually found the fix by looking into the docker file. The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
from tslab.
The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
It's weird. tslab is designed to be able to use Node.js modules (@types/node
) and "tslab"
module even if these libraries are not installed locally. Notebooks don't have to be in directories with package.json
. If you could not import "tslab"
without package.json, it's a bug.
What was the code you executed?
from tslab.
I executed the simple example from your get started article after installation to verify setup.
import * as tslab from 'tslab';
console.log('Hello, tslab!')
console.log('Versions:', tslab.versions)
from tslab.
Then, this is a bug though I can not reproduce it.
It would be great if you can check how the special logic about "tslab"
(forwardTslabPath) works when this bug is reproducible by installing tslab from source.
Here is a guide of installing tslab from source:
https://github.com/yunabe/tslab/blob/master/docs/developing.md
from tslab.
I actually found the fix by looking into the docker file. The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
I ran into the same issue but couldn't reproduce your solution. Would you mind to share the code of your solution, please?
from tslab.
I'm closing this bug because I can not reproduce it and there is no additional information.
If you see a similar problem, please file another bug with details.
from tslab.
Related Issues (20)
- 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?
- jupyter is not installed in this Python. HOT 1
- README enhancement for tslab install and --python option HOT 1
- README enhancement : Clarify "terminal"
- README enhancement : "Usage" section only applies to Unix/Linux
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.