Coder Social home page Coder Social logo

semi-formal-notebook's Introduction

Semi-Formal Notebook

Implementation inspired by percival.ink.

Running this

We're using bun so install that. Run bun install in the repo. Run bun dev to run. Optionally change the port it runs on with bun dev --port=XXXX.

You'll need to add an OpenAI API Key to a top-level .env.local file. That file should look like this:

NEXT_PUBLIC_API_KEY="sk-proj-..."

Cells (random thoughts... not reflective of actual implementation)

Each cell has a semi-formal canvas specification region, a data region, and a view region.

(Data is essentially a formal, text-based kind of view like a traditional program. It is a traditional program.)

There are four kinds of cells:

  • Data: e.g. {foo: "bar"}. has a view that can modify the data
  • Computed: e.g. dataset.foo. has a view but it cannot modify the data since it is computed in terms of other cells
  • Function: e.g. def baz(): .... doesn't have a view for now. if it did have a view I think it would be explaining the code and not allow modification
  • View: e.g. data vis. a data or computed cell that returns HTML. in contrast to data and computed cells, which use auto-generated views that cannot be modified, this cell specifies a custom view

TODOs: I'm not sure if these cell types really make sense. They may be imposing artificial boundaries. For example, maybe a function's view could modify some constant inside that function's body? Why put arbitrary restrictions on editing views? It's for simplicity but maybe it's more annoying than it's worth.

This is a Next.js project bootstrapped with create-next-app.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

semi-formal-notebook's People

Contributors

joshpoll avatar

Watchers

 avatar

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.