Skip to main content

Questions tagged [html]

Questions related to the use of Mathematica for creating or manipulating HTML documents.

Filter by
Sorted by
Tagged with
53 votes
1 answer
3k views

Google Map in Notebooks?

GoogleMaps are implemented as HTML and Javascript code which can be viewed by a web browser. Is it possible to load this map into the Mathematica notebook, which obviously means for example that <...
Harald's user avatar
  • 1,583
44 votes
4 answers
6k views

How to translate interactive graphics from Mathematica to standard HTML+SVG?

I have a simple interactive plot in Mathematica, with controls for various parameters. The point of the plot is simply that users can explore how the plot changes as the parameters change by ...
kjo's user avatar
  • 11.7k
43 votes
2 answers
3k views

Extract information from HTML using CSS selectors?

TL;DR Is there any way that we can parse HTML using CSS selectors in Mathematica, the way it is done in for example jQuery? Extracting information from websites, i.e. web-scraping, in Mathematica can ...
C. E.'s user avatar
  • 70.8k
31 votes
5 answers
3k views

Fetching data from HTML source

I want to generate a couple of plots/graphs with Area 51 statistics. Since Area 51 doesn't work with the SE API, I'm forced to find another way to get the information I want. That other way is with <...
CHM's user avatar
  • 3,415
23 votes
3 answers
2k views

Download xkcd Click and Drag comic

Inspired by the recent question about xkcd styled plots I started looking at xkcd again and I came across a comic titled Click and Drag. And if you do that, you start exploring a larger drawing. A ...
Mr.Wizard's user avatar
  • 272k
15 votes
3 answers
4k views

How to scrape the headlines from New York Times and Wall Street Journal?

How to scrape headlines from New York Times, Wall Street Journal main pages to create datasets similar to this service? Importing HTML from nyt.com (HTML4) results in a ...
alancalvitti's user avatar
  • 15.1k
15 votes
2 answers
1k views

How to export to HTML and not lose Grid Frame in the generated HTML?

This is a known issue for me with Mathematica. When I export a notebook to HTML, Mathematica loses some decorations such as Grid Frame lines (in grid and like objects). For example, creating this ...
Nasser's user avatar
  • 146k
15 votes
1 answer
498 views

Workbench (Eclipse version) HTML Documentation Build HTML issues

Description The HTML generated for local viewing by Workbench (Eclipse plugin version 10.1.757) has some issues before they can be published. This post is in continuation of the original question ...
Frank Martin's user avatar
  • 1,145
13 votes
1 answer
1k views

Exporting numbered equations to HTML/TeX using conversion rules

This question is a follow up from this one. It may also be considered a duplicate since I have already asked this question in stackoverflow almost a year ago. For a background on using numbered ...
jmlopez's user avatar
  • 6,490
12 votes
1 answer
1k views

Dynamic visualization of Graph[] on a webpage

How can we embed a dynamic version of a Graph object on a web page, similar to the one showcased on the networkx home page? This sort of dynamic visualization can ...
Szabolcs's user avatar
  • 236k
11 votes
2 answers
461 views

Workbench 2 and 3 Documentation HTML Build Fails (Output file test failed)

In Wolfram Workbench it used to be possible to generate HTML Documentation pages. Now when I build, using Mathematica 10.4+ and Workbench 2 or 3 on Windows 8.1, the HTML build fails (the notebook ...
Frank Martin's user avatar
  • 1,145
11 votes
1 answer
1k views

Parse website data that requires interaction with a form (POST)

I want to analyse Chilean elections data available in the official website. What I have returns the data for president (numbers are strings, to be parsed later). ...
rhermans's user avatar
  • 36.7k
11 votes
1 answer
2k views

Send HTML tables with SendMail

I'm trying to send some HTML table using Mathematica SendMail function. To do it I wrote this function: ...
Murta's user avatar
  • 26.3k
10 votes
2 answers
3k views

How do I translate a list of English words into another language using an online translation service with Mathematica?

As far as I know, there are two posts on this topic: Can I use Mathematica to translate a English word to a Chinese characters? and *How can I use Mathematica to get the translated result from the ...
matheorem's user avatar
  • 17.2k
10 votes
1 answer
534 views

Wikipedia People only search

I am trying to search people from Wikipedia(For example .*John.* in REGEX). The following query is close, but it isn't generalized like ...
William's user avatar
  • 7,635
10 votes
3 answers
171 views

Unwanted extra spaces at HTML tag boundaries when using ImportString

What causes the following unexpected behavior? ...
hftf's user avatar
  • 949
10 votes
1 answer
683 views

How can I use "Save as (html)" and still render code as text?

I use notebook "Save as ... (html)" to convert my .nb to web. Formulas and plots get converted to images, which is fine. But code (input cells) get converted too into images. I would like people to be ...
carlosayam's user avatar
  • 2,080
10 votes
1 answer
155 views

Is equation numbering in exported HTML considered deprecated for built in stylesheets?

TLDR or simply stated: how do I export equation/section numbers to HTML? The built-in function doesn't seem to do it. Longer form of the question: So I've been tinkering around with the built in ...
Ranza's user avatar
  • 1,205
10 votes
1 answer
443 views

How to work around incorrect tooltips in plots exported to HTML

This is an issue that I always wanted to investigate but haven't gotten around to solving yet: The tooltips for contour lines in a plot like this can be very useful in the Notebook interface: ...
Jens's user avatar
  • 97.4k
9 votes
1 answer
183 views

How to store data in a Mma SE question using hidden html-like markup?

Mathematica Stack Exchange accepts HTML in the questions, and therefore text such as <undefined rubbish> should be ignored when formatting the question for ...
rhermans's user avatar
  • 36.7k
9 votes
1 answer
335 views

Incorporating photos into a Mathematica-made web page

I use Mathematica to make my web page. I make various .nb files, usually with photos, and then use an Export command to convert the .nb file to an .html file with ...
stan wagon's user avatar
8 votes
1 answer
284 views

How to deploy a simple contact form with WebItems?

I'd like to make a contact form exactly like this page: Of course changing the icon and where it gets sent to, but otherwise exactly the same look. Key features: Submit sends an email Field are ...
M.R.'s user avatar
  • 31.6k
7 votes
2 answers
366 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
shrx's user avatar
  • 7,817
7 votes
1 answer
945 views

web scraping images

I am trying to load player profile pictures from the following page: https://www.transfermarkt.com/manchester-united/startseite/verein/985/saison_id/2006# I use the following code: ...
Philippe Dufour's user avatar
7 votes
1 answer
175 views

Problem with exporting nested Rows/Columns to HTML

I will show the problem on the following MWE: Export["test.html", Column[{ Row[{"test", "1"}] }], "HTML", "CSS" -> None] ...
Kuba's user avatar
  • 137k
7 votes
1 answer
235 views

How to export to .html .nb file together with links «in» and «out»

If use «File > Save As > HTML» links «in» and «out» are lost How to save a document without loss of these lines/links? UPD: You can write in the css rules (...
Игорь Вячеславович's user avatar
6 votes
2 answers
1k views

Exporting a CDF to HTML

I'm using Mathematica for Students on a Mac. How do I export a CDF document to HTML? According to the Wolfram website I should click on ...
Michael's user avatar
  • 161
6 votes
2 answers
312 views

HTMLEncode a string for webMathematica

Is there a native Mathematica way to convert a string like "<select></select>" into ...
Daniel's user avatar
  • 825
6 votes
2 answers
303 views

Export Table with URL as HTML?

This is expression: ...
partida's user avatar
  • 6,836
6 votes
1 answer
98 views

How to convert documentation into web-site like Wolfram's Documentation?

I can build documentation notebooks but I'd like them to be deployed just like Mathematica's internal notebooks are on http://reference.wolfram.com/language/. Crucially, I would like the open/close ...
M.R.'s user avatar
  • 31.6k
5 votes
2 answers
977 views

How to save a web page in mathematica?

For a given web page http://www.nytimes.com/, is it possible to save it as : first: only HTML(within css) second: more elements(include pictures and so on) just like what a browser can do. ...
withparadox2's user avatar
  • 2,481
5 votes
2 answers
306 views

Cleaning up a List of HTML Data to Render Usable Information

I am using Mathematica to scrape information from webpages. To get file information, I am gathering plain text that is enclosed by <tr> and ...
canadian_scholar's user avatar
5 votes
1 answer
162 views

Tooltip in a GeoGraphics isn't working when exported as an html file.... it worked some years ago. What gives?

A few years ago, in an earlier version of Mathematica™, I had lovely results in exporting to HTML, a map made with GeoGraphics with Tooltips for counties. I've just tried doing something similar and ...
Stephen Wilkus's user avatar
5 votes
1 answer
510 views

Image Tooltip exported to HTML

Graphics@Tooltip[Hyperlink[{Purple, Rectangle[{0, 0}]}, "http://www.wolfram.com"], Graphics[Disk[]]] Is it possible to make image tooltip kept in the html?
HyperGroups's user avatar
  • 8,619
5 votes
1 answer
172 views

How to set ExportOptions for custom HTML exports

I need to customize some HTML tags when exporting a Mathematica notebook to HTML. I have to use the File ► Save As… FrontEnd token and not ...
bobknight's user avatar
  • 2,037
5 votes
1 answer
290 views

"Save as (html)" and still render Input cell code as text?

When I' m testing on this post' s method I found some problems. ...
HyperGroups's user avatar
  • 8,619
5 votes
1 answer
241 views

How to run a wolfram-server safely on a VPS as a backend of a webpage?

If one runs SocketListen on a Virtual Private Server (VPS), in principle one can set up a webpage with the Wolfram Language as a back-end. For instance, with ...
Fortsaint's user avatar
  • 2,060
5 votes
1 answer
161 views

ExportString and HTML: where are saved images?

I want to use ExportString to generate HTML expression. Here is an easy example: ExportString[x^3, "HTML", "FullDocument" -> False] gives ...
bobknight's user avatar
  • 2,037
5 votes
1 answer
702 views

Integrating Mathematica in Blackboard

I teach Economics at University. I often use Mathematica to generate interactive diagrams with demand and supply curves. We also use Blackboard (blackboard.com) to manage our subjects, including ...
mariodrumblue's user avatar
5 votes
1 answer
777 views

Trouble with CDF on Mac OSX

My problem seems to be very strange. I've created a CDF file and am trying to upload it to a Google site, and I've been almost completely successful! My only problem is that I cannot correctly view/...
SteveB's user avatar
  • 51
5 votes
1 answer
173 views

Custom rules for expressions in export to HTML(Fragment)

ExportString[Grid[{{a, b}}], "HTMLFragment"] ...
Kuba's user avatar
  • 137k
5 votes
1 answer
104 views

How to generate absolute directory while exporting HTML

...
HyperGroups's user avatar
  • 8,619
5 votes
0 answers
52 views

HTML export: Customize footer

If I export a notebook to HTML, this is inserted at the end of every page: ...
Szabolcs's user avatar
  • 236k
5 votes
0 answers
64 views

How to deploy a simple game as an html page

I have taken the following code from the mister Wizard answer to my old question Programming the fiver game ...
cyrille.piatecki's user avatar
5 votes
0 answers
81 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
user5601's user avatar
  • 3,675
5 votes
0 answers
409 views

Notebook manipulation to "Save as (HTML)"

In a previous question, I said that I wanted to display code as text in "Save as (HTML)". I am closer, but would like to ask the community for a better approach by telling the whole picture. I did my ...
carlosayam's user avatar
  • 2,080
4 votes
1 answer
148 views

Is it possible to build a small web site with vanilla Mathematica? How about a web server?

Note: This question is not about WebMathematica. I speculate it is capable of doing everything about to be discussed. With its diverse capabilities and near endless ...
Jules Manson's user avatar
  • 2,467
4 votes
1 answer
91 views

XML, select several values

I import a XML file, using: xmldatatest = Import["C:\\...\\...\\name.xml", {"XML", "XMLObject"}, "ReadDTD" -> False] ...
Michiel van Mens's user avatar
4 votes
1 answer
1k views

Getting data using webscraping (Obtaining links from search engine with redirect)

In the past I have used the function Import in relation with "Hyperlink" to collect hyperlinks and data from the internet. For ...
Michiel van Mens's user avatar
4 votes
2 answers
199 views

What is the Mathematica string expression to extract the innertext of an HTML element?

Consider the following example of text extraction. ...
nilo de roock's user avatar