Comments (11)
@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>.
from pyforest.
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
from pyforest.
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'
from pyforest.
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.
@woshichuanqilz are you interested in contributing a feature that suppresses the Javascript display?
from pyforest.
@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.
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.
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.
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.
from pyforest.
The fix has been merged
from pyforest.
Related Issues (20)
- Import modules that are not installed on the machine
- Add TextBlob to NLP HOT 3
- trai_test_split import deprecated HOT 1
- Custom families / local files HOT 2
- Custom families HOT 7
- Help messages HOT 1
- Incompatible with dask in processes scheduler HOT 5
- Add pyforest to first CODE cell and not markdown or other HOT 6
- imports not written HOT 12
- Add AWS Data Wrangler support HOT 1
- auto-completion seems not work at all when using modules imported by pyforest in pycharm HOT 1
- Didn't succeed in installing pyforest HOT 3
- Pyforest doesn't show import lines in VSCode HOT 3
- Imports work but are not imputed in the first cell on kaggle notebooks platform HOT 2
- How can I use it in .py file? HOT 2
- adding mailbox package HOT 1
- It missed a commonly-used package "random" HOT 2
- Empty lines in the output when using LazyImport HOT 1
- Seed all imported libraries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyforest.