Re: [sage-cell] Re: [sage-support] Sage Cell Server

2017-01-29 Thread Ingo Dahn
> > Hi, > what would be the requirements for setting up our own public SageCell server? In particular How much resources would a dedicated virtual machine for such a server need? How much time of a qualified admin, experienced with maintaining servers on Ubuntu, would be approximately required

[sage-cell] Auto-Evaluate

2017-02-18 Thread Ingo Dahn
I am calling SageCell embedded in a web page which fills the input cell according to its URL parameters through a $(document).ready function call. How can I make the Sage Cell to be run automatically when the page has loaded? -- You received this message because you are subscribed to the Google

[sage-cell] Sagecell not available

2017-02-23 Thread Ingo Dahn
I cannot reach https://sagecell.sagemath.org/. Is there a fallback available, in particular for tomorrow,, February 24th,, 02:00-03:00 PST? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails fr

Re: [sage-cell] Re: Sagecell not available

2017-02-23 Thread Ingo Dahn
Sorry for > the troubles! > > Best, > Andrey > > > On Thursday, 23 February 2017 02:48:54 UTC-7, Ingo Dahn wrote: > > I cannot reach https://sagecell.sagemath.org/. Is there a fallback > available, in particular for tomorrow,, February 24th,, 02:00-03:00 PST? > > -

[sage-cell] Inequalities

2017-02-28 Thread Ingo Dahn
solve provides the solution of inequalities as a list of equations and inequalities. Is there a way to transform this into a simplified union of open-closed intervals? For example as a solution of abs(5*x-6) >= 3*x+2 I'd like to have (-oo,1/2] U [4,oo). -- You received this message because you

[sage-cell] Re: Web pages with >10 embedded cells evaluating slowly or not at all

2017-04-05 Thread Ingo Dahn
At first I'd like to express to Andrey and Bill the high appreciation of the teachers in the NetMath network in the German land of Rhineland-Palatinate for providing and supporting SageCell as a free service. Usually it works fine and the support is fast and helpful. We understand that resource

[sage-cell] SageCell Toggle Full Screen Button

2017-04-09 Thread Ingo Dahn
The toggle full screen button is working fine here but not in the cell embedded in the lower part of this page where the cell is (I think) embedded in the

[sage-cell] Re: SageCell Toggle Full Screen Button

2017-04-09 Thread Ingo Dahn
Here <https://netmath.vcrp.de/downloads/Systeme/Sage/Funktionsplotter.html> is a more simple page where the toggle button isn't working: (I am using Chrome). Am Sonntag, 9. April 2017 11:27:24 UTC+2 schrieb Ingo Dahn: > > The toggle full screen button is working fi

[sage-cell] Re: SageCell Toggle Full Screen Button

2017-04-09 Thread Ingo Dahn
Also at the SageCell site <https://sagecell.sagemath.org/?z=eJxL06jQVLBVSEwq1jDSqtA11OTlKsjJL9FI01GoyM3MA0rpGoOYiRVAprEmADB1DJI=&lang=sage>called with a generated link the toggle button isn't working. Am Sonntag, 9. April 2017 11:39:51 UTC+2 schrieb Ingo Dahn: >

[sage-cell] Referring to previous results

2017-04-11 Thread Ingo Dahn
>From the net I got that the result of the previous computation can be referred to as _. But if I try to use it in SageCell like in 1+2 _+5 I get an error. What is the correct way to refer to previous results? -- You received this message because you are subscribed to the Google Groups "sage-ce

[sage-cell] SageCellTube?

2017-04-13 Thread Ingo Dahn
Recently I found by chance Gregory V. Bard's collection of his fine SageCell pages at http://www.gregorybard.com/interacts.html. I wonder, whether there is a chance to establish a central repository where people could upload their pages with a short description for re-use, similar to GeogebraTu

[sage-cell] Re: SageCellTube?

2017-04-13 Thread Ingo Dahn
Apparently there had been once such a site at http://interact.sagemath.org/top-rated-posts but the link seems to be dead. -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an em

[sage-cell] Re: SageCellTube?

2017-04-13 Thread Ingo Dahn
The wiki.sagemath.org has many examples but quite a few - for exmple https://wiki.sagemath.org/interact/number_theory#Factor_Trees - throw errors on Evaluate. -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop

[sage-cell] Re: SageCellTube?

2017-05-20 Thread Ingo Dahn
As a companion to another project I set up a URL registry for SageCell worksheets at http://dahn-research.eu:4000/sagecell. Currently it only has links to my parametrized worksheets which are all in German. Feel free to add other SageCell URLs after setting up an account. The registry is simple

[sage-cell] Re: Global variable namespace across embedded cells

2017-06-08 Thread Ingo Dahn
Hi, I'd like to provide a probably similar worksheet for analyzing data sets. Is there anything available that I may adapt? My worksheet is going to be in German and available under CC-BY-NC.. Am Samstag, 17. Dezember 2016 23:50:46 UTC+1 schrieb Paul Masson: > > I'd like to declare a variable co

[sage-cell] "Unsupported operand types function" with linked cells

2017-06-10 Thread Ingo Dahn
At https://netmath.vcrp.de/downloads/Einheiten/Schell/Formelsammlung/addons/linkedCell2.html, after evaluating the first and then the second linked cell, I get the error TypeError: unsupported operand type(s) for ** or pow(): 'function' and 'function' No error message on console or html val

[sage-cell] Re: "Unsupported operand types function" with linked cells

2017-06-11 Thread Ingo Dahn
Thanks, got it. Am Sonntag, 11. Juni 2017 18:40:26 UTC+2 schrieb Andrey Novoseltsev: > > Linking didn't work, that's why N and n are functions and not integers as > you have tried to define them. > > Looking at the page source, you have created two groups of linked cells > consisting of a single

[sage-cell] Hiding full scrren butto

2017-06-11 Thread Ingo Dahn
In small cells the "Full screen button" is placed over parts of the cell input. Is there a way to hide this button? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-cell] Re: Hiding full scrren butto

2017-06-12 Thread Ingo Dahn
o add. Meanwhile you probably can add some JS to do it manually. > > On Sunday, 11 June 2017 15:06:33 UTC-6, Ingo Dahn wrote: >> >> In small cells the "Full screen button" is placed over parts of the cell >> input. Is there a way to hide this button? >> >

[sage-cell] Re: Hiding full scrren butto

2017-06-12 Thread Ingo Dahn
Addition: I call this on startup within $(document).ready. It gives a non-empty list if I call it after some time from the console. Am Montag, 12. Juni 2017 12:52:10 UTC+2 schrieb Ingo Dahn: > > That doesn't seem to be > easy: document.getElementsByClassName('sagecell_ful

[sage-cell] Re: Hiding full scrren butto

2017-06-14 Thread Ingo Dahn
It doesn't seem that makeSageCell honors a callback function. Do you have an example with a working callback? Am Dienstag, 13. Juni 2017 06:03:03 UTC+2 schrieb Andrey Novoseltsev: > > On Monday, 12 June 2017 05:02:35 UTC-6, Ingo Dahn wrote: >> >> Addition: I call

[sage-cell] Plotting to file with savefig

2017-06-16 Thread Ingo Dahn
I am using the following construction in a linked cell to generate a histogramm of the data array in a file. import matplotlib.pyplot as plt plt.hist(data,bins=classes) plt.savefig('Histogramm.png') plt.close() Problem: When the data array changes and the linked cell is re-evaluated, the diagr

[sage-cell] Re: Plotting to file with savefig

2017-06-18 Thread Ingo Dahn
In the case of savefig, I'd give consistency of the image with the code a higher priority than speed. An option or command to enforce regeneration might do as well. Am Samstag, 17. Juni 2017 08:25:10 UTC+2 schrieb Andrey Novoseltsev: > > On Friday, 16 June 2017 06:44:02 UTC-6, Ingo

[sage-cell] Re: Plotting to file with savefig

2017-06-27 Thread Ingo Dahn
UTC-6, Ingo Dahn wrote: >> >> I am using the following construction in a linked cell to generate a >> histogramm of the data array in a file. >> >> import matplotlib.pyplot as plt >> plt.hist(data,bins=classes) >> plt.savefig('Histogramm.png') >

Re: [sage-cell] Re: Plotting to file with savefig

2017-07-30 Thread Ingo Dahn
Confirmed. Thanks! Andrey Novoseltsev schrieb am So., 30. Juli 2017, 06:05: > On Tuesday, 27 June 2017 02:23:00 UTC-6, Ingo Dahn wrote: >> >> See https://netmath.vcrp.de/downloads/Systeme/Sage/Stichprobe.html >> Evaluate first cell, generate histogram, change an

[sage-cell] Accessing Files

2017-08-28 Thread Ingo Dahn
Is there a way to access (possibly through user interaction) files on a local computer, in order to use - for example - R's read.table()? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from

Re: [sage-cell] Re: Accessing Files

2017-08-28 Thread Ingo Dahn
That's interesting - how can I load a file from another server? Can I make an API/Curl call from within a SageCell? Andrey Novoseltsev schrieb am Di., 29. Aug. 2017 um 06:52 Uhr: > On Monday, 28 August 2017 06:30:08 UTC-6, Ingo Dahn wrote: >> >> Is there a way to access (p

Re: [sage-cell] Re: Accessing Files

2017-08-29 Thread Ingo Dahn
I confess that I am not familiar with Python. When I naively import urllib in a SageCell and call urllib.request.urlopen() I get the error " AttributeError: 'module' object has no attribute 'request'"). A working example would be welcome. Andrey Novoseltsev schrieb am Di., 29. Aug. 2017 um 17:16

[sage-cell] Re: build sagecel input programmatically

2017-10-31 Thread Ingo Dahn
*My use case:* Users are teachers who - knowing some Sage,Maxima,R but very little of programming - want to automatically configure SageCell worksheets, For example they can author randomized test questions in the php based IMathAS system and want to provide for the students supportive SageCell

[sage-cell] Re: nbinteract: Interactive Webpages From Notebooks

2018-02-25 Thread Ingo Dahn
Thanks for forwarding this. I contacted the author. Am Samstag, 24. Februar 2018 23:20:32 UTC+1 schrieb kcrisman: > > Forwarding: This seems like something worth keeping an eye on, though I > have no idea how it intersects with existing Sage interactivity and Sage > cell embedding. > > > I'm Sam

[sage-cell] Gitbook

2018-03-12 Thread Ingo Dahn
Has anyone succeeded embedding a SageCell into a GitBook? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+unsubscr...@googlegroups.com. To view this discu

[sage-cell] Error getting 3d graphs

2019-01-29 Thread Ingo Dahn
I get the following error message when I try to get a 3D graphics with show(plot) in an interactive context. [image: SageCellError.JPG] The normal SageCell connection is working. Any hints? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To un

Re: [sage-cell] Re: Error getting 3d graphs

2019-01-30 Thread Ingo Dahn
Thanks, I can adapt my cells to use plot.show(viewer='threejs'). Where can I find the documentation of this show? (I migt want to change the perspective; the documentation of 3D plot uses plot3d, which doesn't have a show attribute.) Am Di., 29. Jan. 2019 um 21:53 Uhr schrieb Andrey Novoseltsev <

[sage-cell] print and parentheses

2020-02-13 Thread Ingo Dahn
Currently print "a", "b" gives an error in SageCell but works fine in CoCalc. The error message is loud and clear - writing print("a","b") instead works fine also in SageCell, so this is easy to correct. My problem, however, is that I have used the print without parentheses quite often in many w

Re: [sage-cell] Re: print and parentheses

2020-02-13 Thread Ingo Dahn
Would it be possible to maintain under a different URL for some time a Python 2 based SageCell server? Changing a URL would be much easier than correcting SageCell scripts. Alternatively a kind of cookbook with receipts how to circumvent specific SageCell error messages might be helpful though

Re: [sage-cell] Re: print and parentheses

2020-02-13 Thread Ingo Dahn
Here is another problem: SageCells using R not too seldom have 'NULL' in its output, apparently when some R command has no output (that was the interpretation of a colleague of mine from Erlangen University who is using SageCell with R for teaching.) Would it perhaps be possible that SageCell fa

Re: [sage-cell] Re: print and parentheses

2020-02-13 Thread Ingo Dahn
13 February 2020 15:47:30 UTC-7, Ingo Dahn wrote: >> >> Here is another problem: >> SageCells using R not too seldom have 'NULL' in its output, apparently >> when some R command has no output (that was the interpretation of a >> colleague of mine from

Re: [sage-cell] Re: print and parentheses

2020-02-14 Thread Ingo Dahn
This is what I did now. 1. I maintain a registry of the worksheets which I have made online available, tested 100% of them, found ca. 30% broken and corrected those. Remaining problems are the NULL problem for R sheets and failure to plot factorial(x). I still have to go through and ev

[sage-cell] Vector plot

2020-02-15 Thread Ingo Dahn
The following code prints in SageCell blue lines instead of colored vectors. In CoCalc the presentation is correct: v1=vector([1,2,3]) v2=vector([4,5,6]) p1=plot(v1) p2=plot(v2,color='red') p1+p2 -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To

[sage-cell] SageCell Doctor Page

2020-02-15 Thread Ingo Dahn
Would it be possible to establish and maintain on https://sagecell.sagemath.org/ a SageCell Doctor Page that helps curing broken SageCell worksheets? It might be a simple web page with a table giving - Affected part (broken construct - Symptom (Error message) - Prescription (Workaround

[sage-cell] Re: SageCell Doctor Page

2020-02-16 Thread Ingo Dahn
Yes and No: Skip the next two paragraphs if you're short of time, they just give reasons :-). Try to get into the mind of peple like the colleagues in my network. You are busy with your daily duties as a working and teaching scientist or engineer.You are not overly interested in programming. A

Re: [sage-cell] Re: SageCell Doctor Page

2020-02-17 Thread Ingo Dahn
Hi, a collection of recipes WOULD BE useful in our case here, because I already issued a warning to my NetMath network to re-check SageCell worksheets before using them in class. Moreover we are approaching the semester break which leaves time for corrections - provided one knows how to correct. S

Re: [sage-cell] Re: SageCell Doctor Page

2020-02-18 Thread Ingo Dahn
Thanks, Andrey. I'd suggest re-phrasing the sentence on https://sagecell.sagemath.org/help.html to make the distinction between both links apparent: *For more details please consult with Python3-Switch wiki page . For suggestions for corrections and for sub

[sage-cell] Repairing Broken Code

2020-02-18 Thread Ingo Dahn
If your SageCell code broke recently, you may want to go to the SageCellDoctorPage for a suggestion to repair it. If your problem isn't listed there, try to isolate the problem in a code snippet and submit that code and the resulting error message

Re: [sage-cell] Re: Repairing Broken Code

2020-02-21 Thread Ingo Dahn
lie...@gmail.com>: > Tue 2020-02-18 17:24:07 UTC, Ingo Dahn: > > > > If your SageCell code broke recently, you may want to go > > to the SageCellDoctorPage for a suggestion to repair it. > > > > If your problem isn't listed there, try to isolate the problem > >

[sage-cell] Linked Octave cells

2020-04-14 Thread Ingo Dahn
I have 2 cells on one page configured with sagecell.makeSagecell({ languages=["octave"], linked: true, }) But variables set in the first cell evaluated first are undefined in the second cell when evaluated second. When I change languages to ["sage"] both cells are linked correctly. I

[sage-cell] Icons

2020-04-21 Thread Ingo Dahn
This is an irrelevant question, just for writing an explanation on the use of a SageCell: I observe two different icons for the fullscreen buttons: [image: share1.jpg] and [image: fullscreen.jpg] Which is used when? -- You received this message because you are subscribed to the Google Groups

Re: [sage-cell] Icons

2020-04-22 Thread Ingo Dahn
ut. Therefore I wanted to point the student to the fullscreen button, but was surprised when it looked in the embedded cell other than in the cell from which I copied it to my explanation. [Ingo Dahn - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=h5tyo) [h5tyo] O

[sage-cell] Accessing SageCell variables

2020-05-04 Thread Ingo Dahn
I'd like to access the values of variables of a SageCell script from the HTML page embedding the cell. Has anybody tried that before, maybe by saving the values of variables in an attribute of the cell? -- You received this message because you are subscribed to the Google Groups "sage-cell" g

[sage-cell] Code behaves differently

2020-05-29 Thread Ingo Dahn
I see this expected behaviour in one page embedding sagecell: but this unexpected behaviour in another page: Any thoughts what might have casued this (the first is an isolated sagecell, the second is the first of a set of linked cells)? -- You received this message because you are subscribed t

Re: [sage-cell] Re: Code behaves differently

2020-05-30 Thread Ingo Dahn
Thank you - Indeed, the SageCell in the second document was generated by some Javascript and I had forgotten that this script generates Octave cells. [Ingo Dahn - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=j4aqj) [j4aqj] On May 30, 2020 at 1:05 GMT, kcri

[sage-cell] Re: Embedding sagecell.sagemath.org vs Setting Up a Dedicated Server vs CoCalc

2020-06-15 Thread Ingo Dahn
Hi, Chris, I can confirm that SageCell is an excellent and highly responsive and reliable choice for your purpose as long as you don't wanto to receive student modifications of your cells or work in critical situations like timed assessments or hands-on workshops. But it should be fine for homew

[sage-cell] Broken Help Link

2020-10-28 Thread Ingo Dahn
SageCell's Help Link, shown after executing a sage cell, leads to a Broken-Code message, see. e.g. https://netmath.vcrp.de/downloads/Systeme/Sage.html -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receivin

[sage-cell] Re: Broken Help Link

2020-10-28 Thread Ingo Dahn
The SageCell Doctor Page lists 11 different problems and solutions/workarounds for 3 of them. There have been no additions over the last months. I planned to keep the page open until the end of the year, but - unless more solutions are provided - I wouldn't object to taking the link off the Sag

[sage-cell] SageCell Vue Component

2020-11-02 Thread Ingo Dahn
Has someone perhaps built a Vue component with a SageCell? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+unsubscr...@googlegroups.com. To view this disc

[sage-cell] Re: SageCell Vue Component

2020-11-02 Thread Ingo Dahn
Got it; it is working when embedded_sagecell.js is loaded in head of main.html. Ingo Dahn schrieb am Montag, 2. November 2020 um 22:13:34 UTC+1: > Has someone perhaps built a Vue component with a SageCell? -- You received this message because you are subscribed to the Google Groups &q

[sage-cell] CORS-Error executing Sage cell from within Vue

2020-11-03 Thread Ingo Dahn
When executing a sagecell within a Vue component within a Meteor framework running on an Ubuntu system in a Virtual Box environment on a Win10 Host I get the following error message: *Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://sagecell.

[sage-cell] Re: CORS-Error executing Sage cell from within Vue

2020-11-04 Thread Ingo Dahn
Sorry, I cannot deploy my Meteor+Vue, but I could make it available as a git repo. Meanwhile, I am exploring the possibilities to use Sagecell with Vue only (i.e. without Meteor), which I can do on Win10. I succeeded in making up a Vue component with a Sagecell which can be configured by params.

[sage-cell] Using physics in SageCell

2020-12-10 Thread Ingo Dahn
Is there a way to use the IPython module physics (https://github.com/birkenfeld/ipython-physics) in SageCell? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage

Re: [sage-cell] Re: Using physics in SageCell

2020-12-13 Thread Ingo Dahn
Great, it is sufficient for me when it works with linked cells. Though it is strange and it would be attempting to have one interactive SageCell to translate any magnitude measured in SI units to a standard form. Am So., 13. Dez. 2020 um 19:20 Uhr schrieb Andrey Novoseltsev < novos...@gmail.com>:

[sage-cell] Re: Using physics in SageCell

2020-12-16 Thread Ingo Dahn
Hi, Andrej, With your example I get the same error in another cell and when I do load(../physics.py) and in another linked cell import physics I get the old physics not found error. Can you point me to a page with linked cells where it works? novo...@gmail.com schrieb am Sonntag, 13. Dezember 202

[sage-cell] Re: Using physics in SageCell

2020-12-16 Thread Ingo Dahn
exponents allowed The same error occurs in linked cells. Ingo Dahn schrieb am Mittwoch, 16. Dezember 2020 um 14:24:38 UTC+1: > Hi, Andrej, > With your example I get the same error in another cell and when I do > load(../physics.py) and in another linked cell import physics I get the old

[sage-cell] Re: Using physics in SageCell

2020-12-18 Thread Ingo Dahn
Yes, that is working, but working with physical units in SageCell remains problematic. For example Q(20,'g/cm^3').base is working, but si(x)=Q(x,'g/cm^3').base si(20.0) is not, while def si(x, u): return Q(x,u).base si(20.0, 'g/cm^3') is working again. samuel@gmail.com schrieb am Do

Re: [sage-cell] Re: Using physics in SageCell

2020-12-20 Thread Ingo Dahn
Thanks, Andrey, that works also in my linked cells. When I use load() instead of urllib it works also in a single cell and I can use Q(x,u) from physics.py in that cell and in linked cells, e.g. x=Q(1,'m') x^2r but x= 1 m gives a syntax error (also in linked cells). Now I have made up a unit transf

[sage-cell] Playing Jupyter Notebooks through SageCells

2021-01-11 Thread Ingo Dahn
To provide a way for students to work interactively with Jupyter notebooks, with a low entry threshold and a user interface that can be customized with CSS and Javascript, I have implemented the Notebook Player . The Notebook Player reads a Jupyter notebook

[sage-cell] Re: Playing Jupyter Notebooks through SageCells

2021-01-14 Thread Ingo Dahn
Thanks for the suggestion. An updated version of the Notebook Player, converting Jupyter notebooks into web pages with SageCells, is now available at https://dahn-research.eu/nbplayer/. Feel free use it and to set references to this installation. It's repo at https://github.com/ingodahn/nbpla

[sage-cell] Re: Playing Jupyter Notebooks through SageCells

2021-02-02 Thread Ingo Dahn
*Some added sugar:* Notebook Site (https://dahn-research.eu/nbsite/) provides navigation between notebook pages and supports data transfer between these pages. This is intended in particular for large notebooks which are best represented as several pages with SageCells, corresponding to subnote

Re: [sage-cell] Using physics in SageCell

2021-02-06 Thread Ingo Dahn
I am experimenting with another module (pyswarms) which isn't installed on Sagecells. I can work with it in CoCalc after installing it into my project. Such a situation, requiring particular modules for particular purposes, may happen frequently and I wonder whether there could be provided a way

[sage-cell] Re: Network access removed

2021-03-22 Thread Ingo Dahn
This is indeed a severe restriction, and it is surprising that it is applied without prior notice. For using real life data services with SageCell, as for my COVID-Site on https://dahn-research.eu/corona/International.html, it would be necessary to allow data access through pandas. Can that be e

Re: [sage-cell] Re: Network access removed

2021-03-23 Thread Ingo Dahn
Thanks, Andrey, for the update. I hope you can share the whitelist on the SageCell home page so that I can link to it from the Notebook Player. To keep the current pages of me and my collaborators alive, access to subpages of the following two URLs would be needed. https://opendata.ecdc.europa

[sage-cell] Re: linking sage cells with different templates (to "hide" code)

2021-03-30 Thread Ingo Dahn
You may - theoretically - hide code by puttting it into a python file at a URL and including *load(URL)* into the first sage cell. That code would be loaded when the reader evaluates this cell. Unfortunately, recently this stopped working when SageCell removed it's Internet support. Hopefully, t

[sage-cell] File not found error

2021-09-24 Thread Ingo Dahn
I converted a notebook with Python 3 kernel, which executed well in CoCalc, into a web page with SageCells with language python. In the converted page, executing the first cell after the heading "Main Program" throws a FileNotFound err

Re: [sage-cell] File not found error

2021-09-24 Thread Ingo Dahn
No, the cells load files from Github, which is whitelisted a.f.a.I.k. far...@aimath.org schrieb am Freitag, 24. September 2021 um 13:19:39 UTC+2: > > A cell cannot download an arbitrary file from the Web. > > Is that what the code is trying to do? > > On Fri, 24 Sep 202

Re: [sage-cell] File not found error -solved (partially)

2021-09-24 Thread Ingo Dahn
ot;) should be ok, but it gives an error in sagecell. Ingo Dahn schrieb am Freitag, 24. September 2021 um 16:07:45 UTC+2: > No, the cells load files from Github, which is whitelisted a.f.a.I.k. > > far...@aimath.org schrieb am Freitag, 24. September 2021 um 13:19:39 > UTC+2: > >&

[sage-cell] __SAGE_SYNCHRO_MARKER_ with Maxima

2021-09-27 Thread Ingo Dahn
Sagecell with language Maxima recognizes the % symbol but does not use it. Instead it prints it as __SAGE_SYNCHRO_MARKER_... . An example is here . -- You received this message because you are subscribed to the Google Groups "sage-cell" group.

Re: [sage-cell] File not found error -solved (partially)

2021-09-27 Thread Ingo Dahn
Yes, at https://sagecell.sagemath.org/ it works fine. Thanks for correcting. I don't use \n in strings myself, but found this in a third party notebook on machine learning which I converted.. novo...@gmail.com schrieb am Montag, 27. September 2021 um 18:04:40 UTC+2: > Hi Ingo! > > This should t

[sage-cell] Re: __SAGE_SYNCHRO_MARKER_ with Maxima

2021-09-27 Thread Ingo Dahn
In Maxima % refers to the result of the previous cell. The *Read *in the menu bar in the referenced page shows the intended behavior. Should I report this somewhere else? novo...@gmail.com schrieb am Montag, 27. September 2021 um 18:08:38 UTC+2: > When I put % expression into the same cell, so

[sage-cell] Re: __SAGE_SYNCHRO_MARKER_ with Maxima

2021-09-27 Thread Ingo Dahn
The Read version was generated from the ipynb from https://raw.githubusercontent.com/calyau/maxima-tutorial-notebooks/master/notebooks/First%20Steps%20with%20Maxima.ipynb and processed using a (slightly adapted) nbpreview (https://github.com/jsvine/nbpreview). It is a static HTML page generate

[sage-cell] tbcontrol

2022-01-15 Thread Ingo Dahn
Could you please install tbcontrol from PyPI? Thanks Ingo -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+unsubscr...@googlegroups.com. To view this discu

[sage-cell] Aligning CoCalc and SageCell kernels

2022-01-19 Thread Ingo Dahn
The notebook https://cocalc.com/share/public_paths/05ebc375f37dbad26864086873499c62d8090af2 runs fine in CoCalc using the kernel Python 3 (systemwide). When I use it with SageCell with Python kernel, the cell import matplotlib.pyplot as plt %matplotlib inline gives a syntax error. However this

Re: [sage-cell] Re: Aligning CoCalc and SageCell kernels

2022-01-20 Thread Ingo Dahn
Thanks for the explanation - it is good to be aware of the limitations of interoperability, but its not a show-stopper. wst...@gmail.com schrieb am Mittwoch, 19. Januar 2022 um 20:11:32 UTC+1: > On Wed, Jan 19, 2022 at 10:05 AM Andrey Novoseltsev > wrote: > > > > No. > > > > There are no kerne

Re: [sage-cell] cells in dynamically added content

2022-03-04 Thread Ingo Dahn
I managed to add a SageCell dynamically, but how do I link it to the pre-existingsagecells on the page? novo...@gmail.com schrieb am Montag, 21. Februar 2022 um 04:21:20 UTC+1: > Thanks to the work of Jason Siefken, it should be possible to add cell > dynamically - feel free to experiment at ht

[sage-cell] Loading files - deprecation warning

2022-05-24 Thread Ingo Dahn
When I call *load('https://raw.githubusercontent.com/ingodahn/sageutils/master/physics.py')* in a sagecell I get */home/sc_serv/sage/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/misc/remote_file.py:46: DeprecationWarning: ssl.SSLContext() without protocol argument is de

Re: [sage-cell] cells in dynamically added content

2022-06-04 Thread Ingo Dahn
0:06 UTC-7 far...@aimath.org wrote: > >> >> Currently it is impossible to link a new cell to existing cells. >> >> Not sure if anyone is working on that. >> >> On Fri, 4 Mar 2022, Ingo Dahn wrote: >> >> > I managed to add a SageCell dynamic

[sage-cell] Re: SageCell Vue Component

2022-06-05 Thread Ingo Dahn
Update: That is working when all components are rendered at startup time, but not when components are added later - the new component cannot see the sagecell object.initially loaded at the top level. It might be easier if *embedded_sagecell.js* would be available as a module. Ingo Dahn

[sage-cell] Re: SageCell Vue Component

2022-06-05 Thread Ingo Dahn
Update: I can load the existing *embedded_sagecell.js* in a second script tag in a component - contradicting any style guide, but it is working Ingo Dahn schrieb am Sonntag, 5. Juni 2022 um 21:49:45 UTC+2: > Update: That is working when all components are rendered at startup time, > b

Re: [sage-cell] Re: SageCell Vue Component

2022-06-05 Thread Ingo Dahn
I mean javascript modules as in Modules, introduction (javascript.info) such that other Javascript files can use the sagecell object through import { sagecell } from "..." The module could be provided under a different URL and wouldn't conflict with the js f

[sage-cell] Errors accessing SageCell from localhost

2022-06-26 Thread Ingo Dahn
[image: SageCellErrorMessage.png] I am getting these errors when calling SageCell from within my local developmental environment. When I deploy the system to a server, the code is working as expected, so this is not absolutely critical, it just slows down testing quite a bit. Can I avoid this on

Re: [sage-cell] Errors accessing SageCell from localhost

2022-06-28 Thread Ingo Dahn
Tom Judson was reporting a similar problem this morning. >>> >>> Same symptoms, but nothing too concrete like a console warning to pass >>> along. >>> >>> He may have decided it was only on Safari (and not on Chrome). >>> >>> https://

Re: [sage-cell] on click prevents first evaluation

2022-06-28 Thread Ingo Dahn
I am trying to achieve the same objective - recording whether an evalbutton was clicked - is there meanwhile any recommended solution? far...@aimath.org schrieb am Samstag, 19. November 2016 um 15:07:15 UTC+1: > > I made a minimal example showing the behavior I previously > described, by just a

Re: [sage-cell] on click prevents first evaluation

2022-06-28 Thread Ingo Dahn
Solved adding a click handler to the evalbutton in the SageCell callback function. Ingo Dahn schrieb am Dienstag, 28. Juni 2022 um 19:41:07 UTC+2: > I am trying to achieve the same objective - recording whether an > evalbutton was clicked - is there meanwhile any recommended solution? &

Re: [sage-cell] Errors accessing SageCell from localhost

2022-06-30 Thread Ingo Dahn
No change yet. This is the error message on the edge console, saying x-*x* srftoken. [image: Screenshot 2022-06-30 134905.png] novo...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 00:26:14 UTC+2: > Can you please test the problem case and report if there are any changes? > I have added Access

Re: [sage-cell] Errors accessing SageCell from localhost

2022-07-04 Thread Ingo Dahn
Yeah!! It is now also working with Edge. Thanks! novo...@gmail.com schrieb am Montag, 4. Juli 2022 um 19:46:03 UTC+2: > How about now? I've changed the name to X-XSRFToken > > On Thursday, 30 June 2022 at 05:50:33 UTC-6 ingo...@gmail.com wrote: > >> No change yet. This is the error message on the

[sage-cell] Re: Directly executing codes from GitHub

2022-07-17 Thread Ingo Dahn
Not sure what you mean by execute - where? You can load Python code from Github directly into a SageCell using the *load *command as in this example in the first cell. e...@tssfl.co schrieb am Samstag, 16. Juli 2022 um 19:54:27 UTC+2: > Hello

[sage-cell] Re: Loading files - deprecation warning

2022-07-19 Thread Ingo Dahn
@gmail.com schrieb am Samstag, 28. Mai 2022 um 18:12:52 UTC+2: > 2022-05-24 12:39:25 UTC, Ingo Dahn: > > > > When I call > > load(' > https://raw.githubusercontent.com/ingodahn/sageutils/master/physics.py') > > in a sagecell I get > > .../python

[sage-cell] Detecting edits in SageCells

2023-01-14 Thread Ingo Dahn
When I have a SageCell html node, are there events that can be used to detect, whether the user has edited the cell input or evaluated the cell with shift+return? -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and

[sage-cell] Re: Detecting edits in SageCells

2023-01-14 Thread Ingo Dahn
Thanks for the info. I can indeed detect and handle edits with the codemirror *addEventListener *method in a SageCell callback.. I might also detect shift+enter keyboard events and I can handle clicks on the Evaluate button through SageCells callback. But it might be more clean if I could inste

Re: [sage-cell] Re: Detecting edits in SageCells

2023-01-16 Thread Ingo Dahn
I understand that judging the success of an evaluation may not be feasible. For now it would help me to register when a cell is evaluated, but I could imagine other useful infos for the future. For a possible form of the interface - I like that of CodeMirror: When CM is a CoceMirror node, I can

[sage-cell] Making YouTube interactive with Jupyter notebooks and SageCells

2023-01-29 Thread Ingo Dahn
will be very much appreciated. I'd like to add a reminder that a related online conversion of Jupyter notebooks to web pages with SageCells is available as NotebookPlayer <https://dahn-research.eu/nbplayer/>. I hope that that this may be of some use Ingo Dahn -- You received this m

[sage-cell] A SageCell Vue Component

2023-02-24 Thread Ingo Dahn
There is a new gist on Github which provides a *Vue component with a SageCell*. SageCells are created and destroyed dynamically with their respective component. SageCells from different components can be linked. I use this compo

  1   2   >