GithubHelp home page GithubHelp logo

ipython-hierarchymagic's People

Contributors

anntzer avatar tkf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ipython-hierarchymagic's Issues

On Windows, CLI window pops on magic execution (patch included)

Yes, and it's ugly Windows behavior, and it happens with almost any Python script calling CLI command that's written on *nix. Who would expect... ;)

Here is a patch for this case:

--- hierarchymagic.bak
+++ hierarchymagic.py
@@ -99,12 +99,17 @@


 def run_dot(code, options=[], format='png'):
+    import os
     # mostly copied from sphinx.ext.graphviz.render_dot
     from subprocess import Popen, PIPE
     from sphinx.util.osutil import EPIPE, EINVAL

     dot_args = ['dot'] + options + ['-T', format]
-    p = Popen(dot_args, stdout=PIPE, stdin=PIPE, stderr=PIPE)
+    if os.name == 'nt':
+        p = Popen(dot_args, stdout=PIPE, stdin=PIPE, stderr=PIPE,
+                  creationflags=0x08000000)
+    else:
+        p = Popen(dot_args, stdout=PIPE, stdin=PIPE, stderr=PIPE)
     wentwrong = False
     try:
         # Graphviz may close standard input when an error occurs,

Jupyter installation

Hi,
The extension looks glorious on a demo I recently saw.

With %install_ext deprecated on Jupyter, is there a way to install the magic now?
Thanks!

AttributeError: module 'hierarchymagic' has no attribute '__file__'

Hello
I do have this issue when trying working with python 3.6

[I 08:35:14.562 LabApp] Kernel restarted: 88886d5b-3e6f-47a0-a679-f3be6db87982
[IPKernelApp] WARNING | Error in loading extension: hierarchymagic
Check your config files in /root/.ipython/profile_default
Traceback (most recent call last):
File "/root/miniconda2/envs/snake36/lib/python3.6/site-packages/IPython/core/shellapp.py", line 244, in init_extensions
self.shell.extension_manager.load_extension(ext)
File "/root/miniconda2/envs/snake36/lib/python3.6/site-packages/IPython/core/extensions.py", line 86, in load_extension
if mod.file.startswith(self.ipython_extension_dir):
AttributeError: module 'hierarchymagic' has no attribute 'file'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.