Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch errors in markdown javascript #2212

Merged
merged 2 commits into from Jul 28, 2012
Merged

catch errors in markdown javascript #2212

merged 2 commits into from Jul 28, 2012

Conversation

minrk
Copy link
Member

@minrk minrk commented Jul 27, 2012

Javascript errors in markdown cells can no longer break the notebook.

@minrk
Copy link
Member Author

minrk commented Jul 27, 2012

I believe this supersedes #2199, but it actually does different things.

console.log("Error rendering Markdown:");
console.log(e);
this.set_rendered($("<div/>").addClass("render-error").html(
"Error rendering Markdown!<br/>" + e.toString())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can a error be thrown with something else than bad JS in a script tag ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, at least not unless there is a bug in IPython or pagedown's code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do you want be more explicit that it is the embeded Javascritpt that causes an error ?

@Carreau
Copy link
Member

Carreau commented Jul 27, 2012

+1

@Carreau
Copy link
Member

Carreau commented Jul 28, 2012

i'll merge this one.

Carreau added a commit that referenced this pull request Jul 28, 2012
catch errors in markdown javascript
@Carreau Carreau merged commit bb65f3d into ipython:master Jul 28, 2012
minrk added a commit that referenced this pull request Jul 28, 2012
Javascript errors in markdown cells can no longer break the notebook.
@minrk minrk deleted the protectjs branch March 31, 2014 23:36
yarikoptic added a commit to yarikoptic/ipython that referenced this pull request May 2, 2014
* commit 'rel-0.13-33-gcfc5692': (33 commits)
  Backport PR ipython#2347: adjust division error message checking to account for Python 3
  Backport PR ipython#2305: RemoteError._render_traceback_ calls self.render_traceback
  Backport PR ipython#2280: fix SSH passwordless check for OpenSSH
  Backport PR ipython#2270: SSHLauncher tweaks
  Backport PR ipython#2261: Fix: longest_substr([]) -> ''
  Backport PR ipython#2250: fix html in notebook example
  Backport PR ipython#2235: remove spurious print statement from setupbase.py
  fixup
  Backport PR ipython#2223: Custom tracebacks
  Backport PR ipython#2214: use KernelApp.exec_lines/files in IPEngineApp
  Backport PR ipython#2212: catch errors in markdown javascript
  Backport PR ipython#2194: clean nan/inf in json_clean
  Backport PR ipython#2177: remove numpy install from travis/tox scripts
  Backport PR ipython#2169: ipdb: pdef, pdoc, pinfo magics all broken
  Backport PR ipython#2186: removed references to h5py dependence in octave magic documentation
  Backport PR ipython#2185: added test for %store, fixed storemagic
  Backport PR ipython#2170: Fix tab completion with IPython.embed_kernel().
  Backport PR ipython#2163: fix 'remote_profie_dir' typo in SSH launchers
  Backport PR ipython#2117: use explicit url in notebook example
  Backport PR ipython#2126: ipcluster broken with any batch (PBS/LSF/SGE)
  ...
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
catch errors in markdown javascript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants