Skip to main content

A modern node based python editor and REPL for physics, education, and data analysis

Project description

This repo is no longer maintained. Consider using npm init vite and selecting the svelte option or — if you want a full-fledged app framework — use SvelteKit, the official application framework for Svelte.


svelte app

This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.

To create a new project based on this template using degit:

npx degit sveltejs/template svelte-app
cd svelte-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:8080. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

If you're using Visual Studio Code we recommend installing the official extension Svelte for VS Code. If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Single-page app mode

By default, sirv will only respond to requests that match files in public. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.

If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for any path. You can make it so by editing the "start" command in package.json:

"start": "sirv public --single"

Using TypeScript

This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:

node scripts/setupTypeScript.js

Or remove the script via:

rm scripts/setupTypeScript.js

If you want to use baseUrl or path aliases within your tsconfig, you need to set up @rollup/plugin-alias to tell Rollup to resolve the aliases. For more info, see this StackOverflow question.

Deploying to the web

With Vercel

Install vercel if you haven't already:

npm install -g vercel

Then, from within your project folder:

cd public
vercel deploy --name my-project

With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public my-project.surge.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roon-0.3.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roon-0.3.0-py3-none-any.whl (890.0 kB view details)

Uploaded Python 3

File details

Details for the file roon-0.3.0.tar.gz.

File metadata

  • Download URL: roon-0.3.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for roon-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6ebec9c5dbef73921ccbe73d118c368dc31304cf903af3a162ed695ef2731006
MD5 7737a9cb907063f97c6633a19e0c111f
BLAKE2b-256 6158af98d448843b43ad556ef123b5f9ddc7fe5cff99713c005e071db108cfa8

See more details on using hashes here.

File details

Details for the file roon-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: roon-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 890.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for roon-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b8b2ec2d968c439d71b99f64c02d7e63d66a8b4c523b39ba3f1535f159ea705
MD5 a643bcd48e1556b0d53a32a16b19a3e3
BLAKE2b-256 2d69f417ca05631297a5954243bc9c38216b3aaad83ef2ff8aca7b338dd11478

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page