Git Product home page Git Product logo

cocalc-example-files's People

Contributors

ahuchala avatar awmorgan avatar drxyzzy avatar fchapoton avatar haraldschilly avatar juliengiol avatar williamstein 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

cocalc-example-files's Issues

flask example might not work (?)

Moved from sagemathinc/cocalc#97

Please help me to understand why the following example doesn't work:
https://github.com/sagemath/cloud-examples/blob/master/webservice/main.py

Wow, that's broken in many ways, due to it being written years ago and
a lot changing since then. I've rewritten it just now so it works:

https://share.cocalc.com/share/df81e09e5b8f16f28b3a2e818dcdd4560e7818ae/support/2015-09-02-090517-webserver/?viewer=share

You should easily be able to use the above to get going with flask
development. Note that you have to prepend that "base_url" thing
before each url route. There's probably a proper way to do this with

parts of sagews-jupyter example fail on newly installed cocalc docker instance

When trying to run this worksheet on a self-hosted cocalc instance (docker container built/pulled on 2021-04-15), various cells fail to run. For example:

# embed external web page
from IPython.core.display import HTML
HTML('<iframe src="https://en.m.wikipedia.org/" width="95%" height=350>')

results in the following:

Error in lines 1-1
Traceback (most recent call last):
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1230, in execute
    exec(
  File "", line 1, in <module>
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1324, in execute_with_code_decorators
    code = code_decorator(code)
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_jupyter.py", line 360, in run_code
    display_mime(content['data'])
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_jupyter.py", line 292, in display_mime
    show(msg_data['text/latex'])
KeyError: 'text/latex'

Either the example code is no longer valid, or is there a bug in sage/cocalc, it seems.

add LEAN example file

in particular, a first-steps document, where such an example file explains what the UI in cocalc shows and that it works with files ending in ".lean", etc.

below, a very simple example should be enough.

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.