GithubHelp home page GithubHelp logo

Comments (5)

rduplain avatar rduplain commented on June 3, 2024

This one works for me:
{{{
--- a/flaskext/script.py
+++ b/flaskext/script.py
@@ -280,8 +280,8 @@
if not no_ipython:
try:
import IPython

  •            sh = IPython.Shell.IPShellEmbed(banner=self.banner)
    
  •            sh(global_ns=dict(), local_ns=context)
    
  •            sh = IPython.embed(banner2=self.banner, user_ns=context)
    
  •            sh()
             return
         except ImportError:
             pass
    
    }}}

Original Comment By: Mikhail Lukyanchenko

from flask-script.

rduplain avatar rduplain commented on June 3, 2024

Proposed fix works only partially. Interactive shell doesn't contain configured context.


Original Comment By: Mikhail Lukyanchenko

from flask-script.

rduplain avatar rduplain commented on June 3, 2024

Fix seems as easy as: IPython.embed(banner2=self.banner)


Original Comment By: Alfred Hall

from flask-script.

rduplain avatar rduplain commented on June 3, 2024

I'd like to add tests for this. If anyone is up for it, send a pull request.

from flask-script.

techniq avatar techniq commented on June 3, 2024

Fix from pull request.

from flask-script.

Related Issues (20)

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.