Running gvmagic extension on jupyter notebook returning FileNotFounError
I am developing Python 3.5.3 using the jupyter notebook in Anaconda 2.5.0 (64-bit) on a Windows 10 machine. I am trying to use an extension called 'gvmagic', which is used for viewing graphs. The extension seems to load, but returns a FileNotFoundError instead of a graph.
My input code is (Note: 'visualize_de_bruijn_graph' is a custom code that builds a de Bruijn graph from a string):
dbg = visualize_de_bruijn_graph('ACGCGTCG', 3)
print(dbg)
Which returns graph:
digraph "DeBruijn Graph"
CG [label="CG"] ;
TC [label="TC"] ;
GC [label="GC"] ;
AC [label="AC"] ;
GT [label="GT"] ;
AC -> CG ;
CG -> GC ;
GC -> CG ;
CG -> GT ;
GT -> TC ;
TC -> CG ;
Trying to visualize the graph with the following code:
%load_ext gvmagic
%dotstr dbg
returns the error below. I cannot figure out what file is missing, as all the files referenced are where they are suppose to be.
FileNotFoundError Traceback (most recent call last)
<ipython-input-17-d138faf6c47c> in <module>()
----> 1 get_ipython().magic('dotstr dbg')
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086
<decorator-gen-126> in dotstr(self, line)
C:UsersusernameAnaconda3libsite-packagesIPythoncoremagic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in dotstr(self, line)
50 @line_magic
51 def dotstr(self, line):
---> 52 self._from_str(line, 'dot')
53
54 @line_magic
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in _from_str(self, line, layout_engine)
151 def _from_str(self, line, layout_engine):
152 s = self.shell.ev(line)
--> 153 data = run_graphviz(s, layout_engine)
154 if data:
155 display_svg(data, raw=True)
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in run_graphviz(s, layout_engine)
30 cmd = ['dot', '-Tsvg', '-K', layout_engine]
31
---> 32 dot = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
33 stdoutdata, stderrdata = dot.communicate(s.encode('utf-8'))
34 status = dot.wait()
C:UsersusernameAnaconda3libsubprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
674 c2pread, c2pwrite,
675 errread, errwrite,
--> 676 restore_signals, start_new_session)
677 except:
678 # Cleanup if the child failed starting.
C:UsersusernameAnaconda3libsubprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
953 env,
954 cwd,
--> 955 startupinfo)
956 finally:
957 # Child is launched. Close the parent's copy of those pipe
FileNotFoundError: [WinError 2] The system cannot find the file specified
ipython anaconda jupyter-notebook python-3.5 ipython-magic
|
show 3 more comments
I am developing Python 3.5.3 using the jupyter notebook in Anaconda 2.5.0 (64-bit) on a Windows 10 machine. I am trying to use an extension called 'gvmagic', which is used for viewing graphs. The extension seems to load, but returns a FileNotFoundError instead of a graph.
My input code is (Note: 'visualize_de_bruijn_graph' is a custom code that builds a de Bruijn graph from a string):
dbg = visualize_de_bruijn_graph('ACGCGTCG', 3)
print(dbg)
Which returns graph:
digraph "DeBruijn Graph"
CG [label="CG"] ;
TC [label="TC"] ;
GC [label="GC"] ;
AC [label="AC"] ;
GT [label="GT"] ;
AC -> CG ;
CG -> GC ;
GC -> CG ;
CG -> GT ;
GT -> TC ;
TC -> CG ;
Trying to visualize the graph with the following code:
%load_ext gvmagic
%dotstr dbg
returns the error below. I cannot figure out what file is missing, as all the files referenced are where they are suppose to be.
FileNotFoundError Traceback (most recent call last)
<ipython-input-17-d138faf6c47c> in <module>()
----> 1 get_ipython().magic('dotstr dbg')
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086
<decorator-gen-126> in dotstr(self, line)
C:UsersusernameAnaconda3libsite-packagesIPythoncoremagic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in dotstr(self, line)
50 @line_magic
51 def dotstr(self, line):
---> 52 self._from_str(line, 'dot')
53
54 @line_magic
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in _from_str(self, line, layout_engine)
151 def _from_str(self, line, layout_engine):
152 s = self.shell.ev(line)
--> 153 data = run_graphviz(s, layout_engine)
154 if data:
155 display_svg(data, raw=True)
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in run_graphviz(s, layout_engine)
30 cmd = ['dot', '-Tsvg', '-K', layout_engine]
31
---> 32 dot = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
33 stdoutdata, stderrdata = dot.communicate(s.encode('utf-8'))
34 status = dot.wait()
C:UsersusernameAnaconda3libsubprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
674 c2pread, c2pwrite,
675 errread, errwrite,
--> 676 restore_signals, start_new_session)
677 except:
678 # Cleanup if the child failed starting.
C:UsersusernameAnaconda3libsubprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
953 env,
954 cwd,
--> 955 startupinfo)
956 finally:
957 # Child is launched. Close the parent's copy of those pipe
FileNotFoundError: [WinError 2] The system cannot find the file specified
ipython anaconda jupyter-notebook python-3.5 ipython-magic
Do you havedot
installed?
– darthbith
Jul 1 '17 at 15:26
I afraid don't know. Do you know how I could check this? Isdot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g.C:UsersusernameAnaconda3Libsite-packagesIPython
)?
– gwilymh
Jul 3 '17 at 23:53
Note: I initially installedgraphvis
with the commandconda install graphvis
. I tried to useconda install
to installgvmagic
, but got the errorpackage missing in current win-64 channels
. I therefore installedgvmagic
with the commandpip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
First,graphviz
is spelled with az
, not ans
. Second, it is available from graphviz.org. Third,dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to typedot
at a regular command prompt (not Python) and get an output.
– darthbith
Jul 4 '17 at 3:50
Good job finding the typo I made twice in writinggraphvis
instead ofgraphviz
.
– gwilymh
Jul 5 '17 at 17:52
|
show 3 more comments
I am developing Python 3.5.3 using the jupyter notebook in Anaconda 2.5.0 (64-bit) on a Windows 10 machine. I am trying to use an extension called 'gvmagic', which is used for viewing graphs. The extension seems to load, but returns a FileNotFoundError instead of a graph.
My input code is (Note: 'visualize_de_bruijn_graph' is a custom code that builds a de Bruijn graph from a string):
dbg = visualize_de_bruijn_graph('ACGCGTCG', 3)
print(dbg)
Which returns graph:
digraph "DeBruijn Graph"
CG [label="CG"] ;
TC [label="TC"] ;
GC [label="GC"] ;
AC [label="AC"] ;
GT [label="GT"] ;
AC -> CG ;
CG -> GC ;
GC -> CG ;
CG -> GT ;
GT -> TC ;
TC -> CG ;
Trying to visualize the graph with the following code:
%load_ext gvmagic
%dotstr dbg
returns the error below. I cannot figure out what file is missing, as all the files referenced are where they are suppose to be.
FileNotFoundError Traceback (most recent call last)
<ipython-input-17-d138faf6c47c> in <module>()
----> 1 get_ipython().magic('dotstr dbg')
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086
<decorator-gen-126> in dotstr(self, line)
C:UsersusernameAnaconda3libsite-packagesIPythoncoremagic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in dotstr(self, line)
50 @line_magic
51 def dotstr(self, line):
---> 52 self._from_str(line, 'dot')
53
54 @line_magic
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in _from_str(self, line, layout_engine)
151 def _from_str(self, line, layout_engine):
152 s = self.shell.ev(line)
--> 153 data = run_graphviz(s, layout_engine)
154 if data:
155 display_svg(data, raw=True)
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in run_graphviz(s, layout_engine)
30 cmd = ['dot', '-Tsvg', '-K', layout_engine]
31
---> 32 dot = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
33 stdoutdata, stderrdata = dot.communicate(s.encode('utf-8'))
34 status = dot.wait()
C:UsersusernameAnaconda3libsubprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
674 c2pread, c2pwrite,
675 errread, errwrite,
--> 676 restore_signals, start_new_session)
677 except:
678 # Cleanup if the child failed starting.
C:UsersusernameAnaconda3libsubprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
953 env,
954 cwd,
--> 955 startupinfo)
956 finally:
957 # Child is launched. Close the parent's copy of those pipe
FileNotFoundError: [WinError 2] The system cannot find the file specified
ipython anaconda jupyter-notebook python-3.5 ipython-magic
I am developing Python 3.5.3 using the jupyter notebook in Anaconda 2.5.0 (64-bit) on a Windows 10 machine. I am trying to use an extension called 'gvmagic', which is used for viewing graphs. The extension seems to load, but returns a FileNotFoundError instead of a graph.
My input code is (Note: 'visualize_de_bruijn_graph' is a custom code that builds a de Bruijn graph from a string):
dbg = visualize_de_bruijn_graph('ACGCGTCG', 3)
print(dbg)
Which returns graph:
digraph "DeBruijn Graph"
CG [label="CG"] ;
TC [label="TC"] ;
GC [label="GC"] ;
AC [label="AC"] ;
GT [label="GT"] ;
AC -> CG ;
CG -> GC ;
GC -> CG ;
CG -> GT ;
GT -> TC ;
TC -> CG ;
Trying to visualize the graph with the following code:
%load_ext gvmagic
%dotstr dbg
returns the error below. I cannot figure out what file is missing, as all the files referenced are where they are suppose to be.
FileNotFoundError Traceback (most recent call last)
<ipython-input-17-d138faf6c47c> in <module>()
----> 1 get_ipython().magic('dotstr dbg')
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------
C:UsersusernameAnaconda3libsite-packagesIPythoncoreinteractiveshell.py in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086
<decorator-gen-126> in dotstr(self, line)
C:UsersusernameAnaconda3libsite-packagesIPythoncoremagic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in dotstr(self, line)
50 @line_magic
51 def dotstr(self, line):
---> 52 self._from_str(line, 'dot')
53
54 @line_magic
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in _from_str(self, line, layout_engine)
151 def _from_str(self, line, layout_engine):
152 s = self.shell.ev(line)
--> 153 data = run_graphviz(s, layout_engine)
154 if data:
155 display_svg(data, raw=True)
C:UsersusernameAnaconda3libsite-packagesIPythonextensionsgvmagic.py in run_graphviz(s, layout_engine)
30 cmd = ['dot', '-Tsvg', '-K', layout_engine]
31
---> 32 dot = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
33 stdoutdata, stderrdata = dot.communicate(s.encode('utf-8'))
34 status = dot.wait()
C:UsersusernameAnaconda3libsubprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
674 c2pread, c2pwrite,
675 errread, errwrite,
--> 676 restore_signals, start_new_session)
677 except:
678 # Cleanup if the child failed starting.
C:UsersusernameAnaconda3libsubprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
953 env,
954 cwd,
--> 955 startupinfo)
956 finally:
957 # Child is launched. Close the parent's copy of those pipe
FileNotFoundError: [WinError 2] The system cannot find the file specified
ipython anaconda jupyter-notebook python-3.5 ipython-magic
ipython anaconda jupyter-notebook python-3.5 ipython-magic
asked Jun 30 '17 at 19:58
gwilymhgwilymh
145314
145314
Do you havedot
installed?
– darthbith
Jul 1 '17 at 15:26
I afraid don't know. Do you know how I could check this? Isdot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g.C:UsersusernameAnaconda3Libsite-packagesIPython
)?
– gwilymh
Jul 3 '17 at 23:53
Note: I initially installedgraphvis
with the commandconda install graphvis
. I tried to useconda install
to installgvmagic
, but got the errorpackage missing in current win-64 channels
. I therefore installedgvmagic
with the commandpip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
First,graphviz
is spelled with az
, not ans
. Second, it is available from graphviz.org. Third,dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to typedot
at a regular command prompt (not Python) and get an output.
– darthbith
Jul 4 '17 at 3:50
Good job finding the typo I made twice in writinggraphvis
instead ofgraphviz
.
– gwilymh
Jul 5 '17 at 17:52
|
show 3 more comments
Do you havedot
installed?
– darthbith
Jul 1 '17 at 15:26
I afraid don't know. Do you know how I could check this? Isdot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g.C:UsersusernameAnaconda3Libsite-packagesIPython
)?
– gwilymh
Jul 3 '17 at 23:53
Note: I initially installedgraphvis
with the commandconda install graphvis
. I tried to useconda install
to installgvmagic
, but got the errorpackage missing in current win-64 channels
. I therefore installedgvmagic
with the commandpip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
First,graphviz
is spelled with az
, not ans
. Second, it is available from graphviz.org. Third,dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to typedot
at a regular command prompt (not Python) and get an output.
– darthbith
Jul 4 '17 at 3:50
Good job finding the typo I made twice in writinggraphvis
instead ofgraphviz
.
– gwilymh
Jul 5 '17 at 17:52
Do you have
dot
installed?– darthbith
Jul 1 '17 at 15:26
Do you have
dot
installed?– darthbith
Jul 1 '17 at 15:26
I afraid don't know. Do you know how I could check this? Is
dot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g. C:UsersusernameAnaconda3Libsite-packagesIPython
)?– gwilymh
Jul 3 '17 at 23:53
I afraid don't know. Do you know how I could check this? Is
dot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g. C:UsersusernameAnaconda3Libsite-packagesIPython
)?– gwilymh
Jul 3 '17 at 23:53
Note: I initially installed
graphvis
with the command conda install graphvis
. I tried to use conda install
to install gvmagic
, but got the error package missing in current win-64 channels
. I therefore installed gvmagic
with the command pip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
Note: I initially installed
graphvis
with the command conda install graphvis
. I tried to use conda install
to install gvmagic
, but got the error package missing in current win-64 channels
. I therefore installed gvmagic
with the command pip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
First,
graphviz
is spelled with a z
, not an s
. Second, it is available from graphviz.org. Third, dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to type dot
at a regular command prompt (not Python) and get an output.– darthbith
Jul 4 '17 at 3:50
First,
graphviz
is spelled with a z
, not an s
. Second, it is available from graphviz.org. Third, dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to type dot
at a regular command prompt (not Python) and get an output.– darthbith
Jul 4 '17 at 3:50
Good job finding the typo I made twice in writing
graphvis
instead of graphviz
.– gwilymh
Jul 5 '17 at 17:52
Good job finding the typo I made twice in writing
graphvis
instead of graphviz
.– gwilymh
Jul 5 '17 at 17:52
|
show 3 more comments
1 Answer
1
active
oldest
votes
You have to install the Graphviz software on your PC. For Windows, for example, download this https://graphviz.gitlab.io/_pages/Download/Download_windows.html.
In your IPython session, you have to point to the install location, for example:
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin'
%load_ext gvmagic
dbg = visualize_de_bruijn('ACGCGTCG', 3)
%dotstr dbg
And now it should work for you, just as it does for me! You can probably set the PATH variable on your PC instead of having to do it inside IPython each time.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44854010%2frunning-gvmagic-extension-on-jupyter-notebook-returning-filenotfounerror%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have to install the Graphviz software on your PC. For Windows, for example, download this https://graphviz.gitlab.io/_pages/Download/Download_windows.html.
In your IPython session, you have to point to the install location, for example:
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin'
%load_ext gvmagic
dbg = visualize_de_bruijn('ACGCGTCG', 3)
%dotstr dbg
And now it should work for you, just as it does for me! You can probably set the PATH variable on your PC instead of having to do it inside IPython each time.
add a comment |
You have to install the Graphviz software on your PC. For Windows, for example, download this https://graphviz.gitlab.io/_pages/Download/Download_windows.html.
In your IPython session, you have to point to the install location, for example:
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin'
%load_ext gvmagic
dbg = visualize_de_bruijn('ACGCGTCG', 3)
%dotstr dbg
And now it should work for you, just as it does for me! You can probably set the PATH variable on your PC instead of having to do it inside IPython each time.
add a comment |
You have to install the Graphviz software on your PC. For Windows, for example, download this https://graphviz.gitlab.io/_pages/Download/Download_windows.html.
In your IPython session, you have to point to the install location, for example:
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin'
%load_ext gvmagic
dbg = visualize_de_bruijn('ACGCGTCG', 3)
%dotstr dbg
And now it should work for you, just as it does for me! You can probably set the PATH variable on your PC instead of having to do it inside IPython each time.
You have to install the Graphviz software on your PC. For Windows, for example, download this https://graphviz.gitlab.io/_pages/Download/Download_windows.html.
In your IPython session, you have to point to the install location, for example:
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin'
%load_ext gvmagic
dbg = visualize_de_bruijn('ACGCGTCG', 3)
%dotstr dbg
And now it should work for you, just as it does for me! You can probably set the PATH variable on your PC instead of having to do it inside IPython each time.
edited Nov 15 '18 at 19:32
kenlukas
1,55641418
1,55641418
answered Nov 15 '18 at 16:07
Neel IyerNeel Iyer
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44854010%2frunning-gvmagic-extension-on-jupyter-notebook-returning-filenotfounerror%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have
dot
installed?– darthbith
Jul 1 '17 at 15:26
I afraid don't know. Do you know how I could check this? Is
dot
a package or a function or class within a package? Where in the IPython directory should the package be located (e.g.C:UsersusernameAnaconda3Libsite-packagesIPython
)?– gwilymh
Jul 3 '17 at 23:53
Note: I initially installed
graphvis
with the commandconda install graphvis
. I tried to useconda install
to installgvmagic
, but got the errorpackage missing in current win-64 channels
. I therefore installedgvmagic
with the commandpip install -t 'C:UsersusernameAnaconda3Libsite-packagesIPythonextensions' gvmagic
– gwilymh
Jul 4 '17 at 0:03
First,
graphviz
is spelled with az
, not ans
. Second, it is available from graphviz.org. Third,dot
is one of the executables distributed with Graphviz, not a Python package (although, confusingly, there is a Python package with the same name that provides an interface to the true Graphviz language). You should be able to typedot
at a regular command prompt (not Python) and get an output.– darthbith
Jul 4 '17 at 3:50
Good job finding the typo I made twice in writing
graphvis
instead ofgraphviz
.– gwilymh
Jul 5 '17 at 17:52