Closed woshichuanqilz closed 5 months ago
Hi, thank you for the report and all the details. This made it easy to help you :)
Please note the following:
Hi, thank you for the report and all the details. This made it easy to help you :)
Please note the following:
- 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
- I saw that you imported "from pyforest import *" This is the old way. In version 1.0.0 we changed this to "import pyforest"
- 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'
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 :)
@woshichuanqilz are you interested in contributing a feature that suppresses the Javascript display?
@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
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
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.)
@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
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.
This seems to fix it: https://github.com/8080labs/pyforest/pull/49 #49
The fix has been merged
pyforest keep output
$ python --version
3.7.4, anacondapip
,conda
, orother (please explain)
) pip$ pip freeze
or$ conda list
(please include pyforest) packages.txtDescription of Issue
my User import file
Keep print IPython,
Even I make a simple script like this still get the error.
Reproduction Steps
What steps have you taken to resolve this already?
I try to delete some package in the user import file. I just leave 1 package in it which is time package
And my script is just like the code in the pic above Simple loop print, But the repeated IPython things print still happen.
How to solve it ?
Anything else?
...