Coder Social home page Coder Social logo

dleeftink / observable-python-codespace Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 445 KB

Codespace prerequisites for starting with Observable Framework and Python using Node and micromamba.

License: MIT License

Python 13.45% TypeScript 64.83% Shell 21.72%

observable-python-codespace's Introduction

Observable Framework Python starter

This repository contains the basic prerequisites to get started with Observable Framework on Github Codespaces, using micromamba as Python package manager running on Alpine Linux.

  1. Sign in to your GitHub account.
  2. Open https://github.com/dleeftink/observable-codespace (this repository).
  3. Select Use this template > Open in a codespace.

Start making changes

Wait for the codespace to be built and the setup scripts to finish running (this may take some time).

  • After succesfully setting up the environment, codespaces should have automatically opened index.md and penguins.csv.py to the left and a live preview pane to the right.
  • Additionally, a popup might open asking you to trust the live server destination.

You can edit the index.md contents, after which the content changes are reflected (with a slight delay) in the preview pane.

  • Navigate to penguin-classification/docs/data/penguins.csv.py and uncomment X = df.iloc[ ... ] to observe how changes to the Python data-loader are propagated to the live-preview.

If updates stop being reflected in the preview pane, refresh the page. If updates aren't propagated after refreshing, execute CTRL/CMD + C in the terminal after which you can restart the live server using npm run obs.

  • If you accidentally close the preview pane, you can re-open this by navigating to the Ports tab on the bottom half of the screen and hovering the Forwarded Address. Click the Preview in Editor icon that shows on hover to re-open the preview inside your codespace.
  • For more information on getting started, visit the Observable Framework Documentation.

Create a new dashboard

You can create new dashboards ('sub-repositories') as follows:

  1. Open the Terminal tab and cd to the /workspace/observable-python-codespace directory if not already there.

  2. Run the npm init @observablehq command.

    • If this is your first time running this command, you will be prompted to install create. Type y.
  3. Follow the CLI to create the sub-reposistory and additional template files.

observable-python-codespace's People

Contributors

dleeftink avatar

Stargazers

 avatar Cittadhammo avatar  avatar Je Sian Keith Herman avatar Philippe Rivière avatar  avatar  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.