Giter VIP home page Giter VIP logo

Comments (11)

Henryhaohao avatar Henryhaohao commented on August 18, 2024 3

@woshichuanqilz Hello, you can comment out lines 105 to 113 in the _importable.py file, which is the "display" function in the "_update_import_cell" function definition.Then can not print <IPython.core.display.Javascript object>.

666666

from pyforest.

8080labs avatar 8080labs commented on August 18, 2024 1

Hi, thank you for the report and all the details. This made it easy to help you :)

Please note the following:

  1. pyforest is currently only supposed to run in Jupyter Notebook/Lab. This is also the reason why you see the Display.Javascript error. This error might be suppressed via adding a flag that it is not running in Jupyter. eg via adding a new method "pyforest.deactivate_javascript()" If this method is called, a flag will be toggled that suppresses the js
  2. I saw that you imported "from pyforest import *" This is the old way. In version 1.0.0 we changed this to "import pyforest"
  3. Nice to see that you are using a custom imports script. Please note that you can only import one name per line. Eg "from PyQt5.QtCore import QEvent, Qt, pyqtSlot" is not supported yet. You need to write this on separate lines

from pyforest.

woshichuanqilz avatar woshichuanqilz commented on August 18, 2024

Hi, thank you for the report and all the details. This made it easy to help you :)

Please note the following:

  1. pyforest is currently only supposed to run in Jupyter Notebook/Lab. This is also the reason why you see the Display.Javascript error. This error might be suppressed via adding a flag that it is not running in Jupyter. eg via adding a new method "pyforest.deactivate_javascript()" If this method is called, a flag will be toggled that suppresses the js
  2. I saw that you imported "from pyforest import *" This is the old way. In version 1.0.0 we changed this to "import pyforest"
  3. Nice to see that you are using a custom imports script. Please note that you can only import one name per line. Eg "from PyQt5.QtCore import QEvent, Qt, pyqtSlot" is not supported yet. You need to write this on separate lines

Get the error like this I git clone the repo and run setup.py still get this error. How to fix it?

Traceback (most recent call last):
  File "D:/python_project/Make_Write_Easier/emoji_process/get_emoji.py", line 5, in <module>
    pyforest.deactivate_javascript()
AttributeError: module 'pyforest' has no attribute 'deactivate_javascript'

from pyforest.

8080labs avatar 8080labs commented on August 18, 2024

Yes, sorry, for the confusion. The deactivate_javascript function was just an idea for how we could implement this in the future. It does not exist yet. If you want this, feel free to open a pull request to add this feature :)

from pyforest.

8080labs avatar 8080labs commented on August 18, 2024

@woshichuanqilz are you interested in contributing a feature that suppresses the Javascript display?

from pyforest.

woshichuanqilz avatar woshichuanqilz commented on August 18, 2024

@woshichuanqilz are you interested in contributing a feature that suppresses the Javascript display?

sorry for the delay I am very gald to help ? how should I started since I never been a contributor before what should I learn first. I use python for several years. if I can help let me know thank you for your inviting

from pyforest.

8080labs avatar 8080labs commented on August 18, 2024

The first step is to install pyforest locally on your computer from this repo and then have a look at the code. Once you thought through how to add the feature, you can write the new code. When you are done, you can create a pull request so that we can have a look at your code and the way that you wanted to implement this. At the beginning, this might seem a little bit intimidating but you can find a lot of good resources about the steps above on Google. I hope that helps to outline the next steps? If you have more detailed questions or are stuck somewhere, please let us know

from pyforest.

Amusac avatar Amusac commented on August 18, 2024

In my Jupyterlab with pyforest, output area has much blank space. this has a relation with this issue? Do you have any solution? When I uninstalled pyforest, this doesn't occur. (Sorry for my poor English.)

from pyforest.

hgzech avatar hgzech commented on August 18, 2024

In my Jupyterlab with pyforest, output area has much blank space. this has a relation with this issue? Do you have any solution? When I uninstalled pyforest, this doesn't occur. (Sorry for my poor English.)

@Amusac : Yes, this seems to be related to the blank line problem. @Henryhaohao's solution solves this problem, too.

from pyforest.

gamis avatar gamis commented on August 18, 2024

This seems to fix it:
#49 #49

from pyforest.

tkrabel avatar tkrabel commented on August 18, 2024

The fix has been merged

from pyforest.

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.