ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Nov 2021 03:37:07 +0100How to eliminate URL text in conversion to pdfhttps://ask.sagemath.org/question/59998/how-to-eliminate-url-text-in-conversion-to-pdf/I have a simple single Markdown cell in a standard Sagemath 9.4 notebook on CoCalc.com as shown below:
#### test URL links with conversion to pdf
This link **[Figure 9.1.4](https://discretemath.org/ads/images/fig-directed-graph-ex1.png)**
uses markdown **`[text]{(url)`** for the link.
which displays nicely as the following
![image description](https://snipboard.io/TnqGAW.jpg)<br>
in a browser. When I select the **PRINT** button, which performs the conversion to html I see:
![image description](https://snipboard.io/EzJXay.jpg)<br>
in another tab in the browser.
The problem occurs when I do **Print to pdf** from any browser (Chrome, Firefox, Edge, Brave) on the displayed html tab, since the generated pdf file shows the active link **among with** the entire (explicit URL) as shown below.
![image description](https://snipboard.io/MfoIHE.jpg)<br>
The (explicit URL) also appears in the pdf if I run **Save and Download as ... PDF** or **PDF via LaTeX**.
If I use the **Jupyter Classic Notebook Server**, the resulting pdf does not contain the (explicit URL) after the [text] portion. A pdf from a similar CoLab notebook generated a year ago does not contain the (explicit URL) in the pdf versions.
I would like to find a way to eliminate the (explicit URL) part of the active links in the pdf conversion. Something appears to have changed in how Sagemath handles the conversion to html. Whereas the .ipynb file is less than 1KB, the .html file is 266KB. I am unable to attach the files since (apparently) only images are allowed as attachments.holistoneMon, 29 Nov 2021 03:37:07 +0100https://ask.sagemath.org/question/59998/Problem with HOMFLY polynomial of a linkhttps://ask.sagemath.org/question/53623/problem-with-homfly-polynomial-of-a-link/ I am trying to compute the homfly polynomial of some links, given as braids, and I am running in some problems.
For example:
b = [3, 2, 1, 6, 5, 4, 3, 2, -3, -4, 3, -7, 5, 4, 7, -2, -3, -4, -5, -6, -1, -2, -3, -4, -5, -6, -7, 7]
Br = BraidGroup(8)
B = Br(b)
L = Link(B)
L.homfly_polynomial()
and I get the following error:
---------------------------------------------------------------------------
SignalError Traceback (most recent call last)
<ipython-input-7-b500a53dcd1e> in <module>()
3 braidd = Br(b)
4 linkk = Link(braidd)
----> 5 linkk.homfly_polynomial()
/home/user/SageMath/local/lib/python3.7/site-packages/sage/knots/link.py in homfly_polynomial(self, var1, var2,
normalization)
2630 s += ' {} {}'.format(i, cr)
2631 from sage.libs.homfly import homfly_polynomial_dict
-> 2632 dic = homfly_polynomial_dict(s)
2633 if normalization == 'lm':
2634 return L(dic)
/home/user/SageMath/local/lib/python3.7/site-packages/sage/libs/homfly.pyx in
sage.libs.homfly.homfly_polynomial_dict (build/cythonized/sage/libs/homfly.c:1471)()
98 link = str_to_bytes(link)
99 cdef Term ter
--> 100 sig_on()
101 cdef Poly* c_output = homfly(link)
102 sig_off()
SignalError: Segmentation fault
The problem seems to be with some specific diagram of the 2 components unlink (as the one in the previous example).
Also, my memory goes up like crazy after trying to compute the homfly polynomial of these particular diagrams/braids. brbSun, 27 Sep 2020 19:38:06 +0200https://ask.sagemath.org/question/53623/How to create url/file link in jupyter/sage?https://ask.sagemath.org/question/51144/how-to-create-urlfile-link-in-jupytersage/I have file/url:
load("/home/***/MJRun.sage")
I would like to open (fast) this file/url in Jupyter in another card of Firefox. For example by one click. I use this file very often. How to do that?SYLAWed, 29 Apr 2020 15:58:57 +0200https://ask.sagemath.org/question/51144/sage cell difference between Permanent and short linkhttps://ask.sagemath.org/question/47934/sage-cell-difference-between-permanent-and-short-link/Hi
what is the difference on sage cell between Permalink and Short temporary link
does it mean that Short temporary link will be able to be used only a short period of time as its name suggests ?
in the case of short temp lnk, how long the link will remain valid ?
I suppose that if the server restart the short link does not exist anymore ?
Permalink is not usable in Youtube comment, there are characters that are not accepted for a link and the link's length is insane .ortolljMon, 16 Sep 2019 09:41:27 +0200https://ask.sagemath.org/question/47934/some links cannot back Sage Reference Manualhttps://ask.sagemath.org/question/24641/some-links-cannot-back-sage-reference-manual/1
https://sage.epsevg.upc.edu:8000/doc/live/reference/plane_curves/sage/schemes/elliptic_curves/jacobian.html
when link below,no button to back to Sage Reference Manual
REFERENCES:
[WpJacobianVariety] http://en.wikipedia.org/wiki/Jacobian_variety
2
https://sage.epsevg.upc.edu:8000/doc/live/reference/plane_curves/sage/schemes/elliptic_curves/constructor.html
when link below,no button to back to Sage Reference Manual,it link to http://trac.sagemath.org/13100,but blank page...
there are more links like above troubles at other places in Sage Reference Manual,I meet several times
cjshMon, 27 Oct 2014 09:41:03 +0100https://ask.sagemath.org/question/24641/[Solved] run-time link issue in IPython Notebookhttps://ask.sagemath.org/question/10980/solved-run-time-link-issue-in-ipython-notebook/I'm trying to run QuantLib + cython wrappers (pyql) in a IPython notebook.
From the console, I can:
- build QuantLib and run the test suite
- build pyql and run the test suite (path to QuantLib.so set with -rpath arguments in g++)
- use ldd to verify that the run-time links are resolved
- invoke ipython (from the console) and run tests, works fine. The key point being run-time link to the QuantLib.so library.
Now I open an IPython notebook, cd to the proper directory, try to import a module, get an import error (libQuantLib.so.0 not found). Same problem if I use a notebook without sage enhancements.
Is the ipython interpreter used in a notebook somehow different from the one invoked in a console? More generally, what is the canonical way to register a dynamic library for use in a notebook, given that "ldconfig -n <path>" is not an option?phnSun, 02 Feb 2014 19:45:11 +0100https://ask.sagemath.org/question/10980/Link to file within worksheethttps://ask.sagemath.org/question/10487/link-to-file-within-worksheet/I would like to add a link to file (which was previously uploaded to notebook) which would open when you click on it. Can this be done in sage?
RegardsfoglThu, 12 Sep 2013 07:59:20 +0200https://ask.sagemath.org/question/10487/why remove_face uses alexander duality?https://ask.sagemath.org/question/8091/why-remove_face-uses-alexander-duality/The method for simplicial complexes remove_face is very slow for not to say that never ends. The documentation describes the used algorithm, but it seems pretty unefficient. I think it is easier simply to remove the facets containing the face to delete F, and for each facet add the faces not containing F. That is the join of the boundary of F and the complement of F (the link). Why to use such elaborate algorithm?EmersonLWed, 27 Apr 2011 12:56:04 +0200https://ask.sagemath.org/question/8091/