Giter Site home page Giter Site logo

arturoeanton / go-notebook Goto Github PK

View Code? Open in Web Editor NEW
38.0 3.0 2.0 37.28 MB

Go-Notebook is inspired by Jupyter Project (link) in order to document Golang code.

License: MIT License

Go 68.58% HTML 18.86% CSS 9.38% Dockerfile 3.18%
golang notebook-jupyter plot notebook gomacro repl shell-go golang-examples golang-tools golang-notebook

go-notebook's Introduction

Go-Notebook

Go-Notebook is an app that was developed using go-echo-live-view framework, developed also by us.

GitHub repository is here.

For this project we using https://github.com/cosmos72/gomacro too

About

Go-Notebook is inspired by Jupyter Project (link) in order to document Golang code.

You can add code and text depends your needs.

Run

We will make docker in the future :P

git clone https://github.com/arturoeanton/go-notebook.git
cd go-notebook
go run main.go

Wait

⇨ http server started on [::]:1323

Go to

http://localhost:1323/

Run on docket

We will make docker in the future :P

docker pull arturoeanton/go-notebook
docker run --rm -p 1323:1323 arturoeanton/go-notebook

Go to

http://localhost:1323/

Change notebooks and snippet folders

Docker

docker run --rm -p 1323:1323 --volume ./notebooks:/app/notebooks --volume ./snippet:/app/snippet arturoeanton/go-notebook

Podman

podman run   --rm -p 1323:1323 --volume ./notebooks:/app/notebooks:Z --volume ./snippet:/app/snippet:Z arturoeanton/go-notebook

DEMO

alt text

alt text

To Do

This project is still in progress, we are working in the following features.

  • Add examples.
  • Save snippet
  • default.gonote.json convert in folder, and run files in this folder.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

go-notebook's People

Contributors

arturoeanton avatar rodbau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rodbau sunilkum84

go-notebook's Issues

docker image cannot run

docker run -it --name gophernotes --rm -p 1323:1323 arturoeanton/go-notebook

// debug: running "go get gonum.org/v1/plot" ...
go get: module gonum.org/v1/plot: Get "https://proxy.golang.org/gonum.org/v1/plot/@v/list": dial tcp 172.217.163.49:443: i/o timeout
panic: error loading package "gonum.org/v1/plot" metadata: error executing "/usr/local/go/bin/go get gonum.org/v1/plot" in directory "/go/src/gomacro.imports/gonum.org/v1/plot": exit status 1

goroutine 1 [running]:
github.com/cosmos72/gomacro/fast.(*Comp).ImportPackage(...)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/import.go:138
github.com/cosmos72/gomacro/fast.(*Comp).Import(0xc00003c0c0, 0x1aaf000, 0xc000406900)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/import.go:188 +0x3b3
github.com/cosmos72/gomacro/fast.(*Comp).compileNode(0xc00003c0c0, 0x1aa6ed8, 0xc000406900, 0x4, 0x30)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/compile.go:427 +0x21b
github.com/cosmos72/gomacro/fast.(*Comp).compileDecl(0xc00003c0c0, 0xc0001f2550, 0x0)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/compile.go:387 +0x4af
github.com/cosmos72/gomacro/fast.(*Comp).Compile(0xc00003c0c0, 0x1ab91f8, 0xc00026bde8, 0x1ab91f8)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/compile.go:347 +0x1df
github.com/cosmos72/gomacro/fast.(*Interp).CompileAst(0xc000284d50, 0x1ab91f8, 0xc00026bde8, 0x1ab91f8)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/repl.go:94 +0x1a5
github.com/cosmos72/gomacro/fast.(*Interp).Compile(0xc000284d50, 0xc0001f6000, 0x181, 0x181)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/repl.go:74 +0x65
github.com/cosmos72/gomacro/fast.(*Interp).Eval(0xc000284d50, 0xc0001f6000, 0x181, 0x181, 0x0, 0x0, 0x4, 0xc0002068c0, 0x0)
/go/pkg/mod/github.com/cosmos72/[email protected]/fast/interpreter.go:262 +0x45
main.main()
/app/main.go:226 +0x2fc

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.