netgusto / nodebook Goto Github PK
View Code? Open in Web Editor NEWNodebook - Multi-Lang Web REPL + CLI Code runner
License: ISC License
Nodebook - Multi-Lang Web REPL + CLI Code runner
License: ISC License
Exemple:
const chalk = require('chalk');
console.log(chalk.green('Hello, World!'));
Should it be displayed in green, or [32mHello, World![39m
?
When running with --docker please allow configuration for different docker registry
The "Run" button should change when the code is running:
Just a reminder to add a LICENSE file to this project ๐
Principle: generate and display on the command line an auth token valid for the session, and authorize in the browser for the duration of the session.
Enabled by default, disable with --no-auth on the command line.
One should be able to define custom recipes / override base recipes by (re-)defining them in ~/.config/nodebook
What about C# / .NET ?
Hey since this is a go project it'd be really easy to use goreleaser You could easily build binaries for a new tag with debugger options like --ldflags
and drastically reduce the binary size(I ran it locally and it got to 9.6MB).
You can set up a homebrew tap and using nfpm with that and it could easily replace the download from releases . This in terms will reduce the learning curve of a new installation and make the installation process quite faster.
You can use these within a CI/CD system or GitHub Actions.
I'll be happy to send a PR and help you on this
Handle persistent environment in a .env file that would be loaded before every run.
A new tab next to the console might be added to edit it.
Currently, the last log line is not displayed if the output is not terminated by newline, when using docker toolchains.
This is probably due to the docker client buffering the log until the line is complete.
To reproduce, snippet in go:
package main
import "fmt"
import "time"
func main() {
fmt.Println("Hello, World!")
currentTimeMillis := time.Now().UnixNano() / int64(time.Millisecond)
fmt.Printf("Current Time Millis: %d", currentTimeMillis)
}
Output may or may not contain last line:
I recommend git-ignoring the dist
folder. The files can be generated on first run or with the npm postinstall
script. As it is, code reviews are noisy (babel and minified code shows up) and there's a bit of a security risk in that one could sneak code into the dist files and most reviewers would not notice.
I downloaded nodebook-mac.dms , but I don't know how to use it on Mac. Please help me
Hi there,
Really cool project!
I just spent an afternoon dockerizing it. I have a repo here:
https://github.com/ms-jpq/nodebook-docker
It runs Docker inside Docker, so everything is a bit cleaner.
So far I've tested all the repls (with hello world), and they all seem to be a-okay except ocaml. It throws a Permission denied
thing.
I don't know if you want to incorporate it into your main repo or not, but just thought i'd let you know. :)
Have a good day!
Edit:
Ocaml also throws the same error if i run it outside of Docker in Docker. (Still using the same --docker
option)
So I dont think thats related.
And see each other changes?
Every time I launch nodebook with the same code folder, the homepage is empty and all previous notebooks are gone (though the code files do exist on the file system). Is this normal?
P.S. I have tried "Install and run as package (npm)" and "Install and run from source as an electron app", both failed.
Created a new Swift notebook. On running it -
Ready.
--- Running...
<unknown>:0: error: no such file or directory: 'notes/Pigmarsh Lion/main.swift'
exit status 1
--- Done.
What am I missing?
ubuntu 19:10
`
Ready.
--- Running...
internal/modules/cjs/loader.js:895
throw err;
^
Error: Cannot find module '/other/clones/nodebook/notebook/Waspbutter Robin/notebook/Waspbutter Robin/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
at Function.Module._load (internal/modules/cjs/loader.js:785:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1143:12)
at internal/main/run_main_module.js:16:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
exit status 1
--- Done.
`
subj
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.