sagemathinc / cocalc-example-files Goto Github PK
View Code? Open in Web Editor NEWCollection of examples to get started with CoCalc
Collection of examples to get started with CoCalc
the code in https://github.com/sagemathinc/cocalc-example-files/blob/master/julia/julia-first-steps.ipynb is outdated.
if
x
is an array, thenx .+ 2
adds 2 to every element. Notice the dot (.).
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:
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
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.
See this ticket: sagemathinc/cocalc#347
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.